Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1622:f5ff0b68e418 Date: 2015-01-07 19:25 +0100 http://bitbucket.org/cffi/cffi/changeset/f5ff0b68e418/
Log: improve doc for ffi.set_unicode() diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -433,7 +433,9 @@ ``c_f``. * *New in version 0.6:* all `common Windows types`_ are defined if you run - on Windows (``DWORD``, ``LPARAM``, etc.). + on Windows (``DWORD``, ``LPARAM``, etc.). *Changed in version 0.9:* the + types ``TBYTE TCHAR LPCTSTR PCTSTR LPTSTR PTSTR PTBYTE PTCHAR`` are no + longer automatically defined; see ``ffi.set_unicode()`` below. * *New in version 0.9:* the other standard integer types from stdint.h, as long as they map to integers of 1, 2, 4 or 8 bytes. Larger integers @@ -1376,9 +1378,10 @@ **ffi.set_unicode(enabled_flag)**: Windows: if ``enabled_flag`` is True, enable the ``UNICODE`` and ``_UNICODE`` defines in C, and -declare the types like ``TCHAR`` and ``LPTCSTR`` to be (pointers to) -``wchar_t``. If ``enabled_flag`` is False, declare these types to be -(pointers to) plain 8-bit characters. *New in version 0.9.* +declare the types ``TBYTE TCHAR LPCTSTR PCTSTR LPTSTR PTSTR PTBYTE +PTCHAR`` to be (pointers to) ``wchar_t``. If ``enabled_flag`` is +False, declare these types to be (pointers to) plain 8-bit characters. +*New in version 0.9.* The reason behind this method is that a lot of standard functions have two versions, like ``MessageBoxA()`` and ``MessageBoxW()``. The _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit