Mercurial > cpython-lru_cache-weakref
diff Modules/_ctypes/ctypes.h @ 39085:85ffc0bfcc98 legacy-trunk
Make the prototypes of our private PyUnicode_FromWideChar and
PyUnicode_AsWideChar replacement functions compatible to the official
functions by using Py_ssize_t instead of int.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Fri, 14 Jul 2006 15:01:05 +0000 |
| parents | 381a72ab5fb8 |
| children | a55369e23f06 |
line wrap: on
line diff
--- a/Modules/_ctypes/ctypes.h Fri Jul 14 14:04:45 2006 +0000 +++ b/Modules/_ctypes/ctypes.h Fri Jul 14 15:01:05 2006 +0000 @@ -377,8 +377,8 @@ # undef PyUnicode_AsWideChar # define PyUnicode_AsWideChar My_PyUnicode_AsWideChar -extern PyObject *My_PyUnicode_FromWideChar(const wchar_t *, int); -extern int My_PyUnicode_AsWideChar(PyUnicodeObject *, wchar_t *, int); +extern PyObject *My_PyUnicode_FromWideChar(const wchar_t *, Py_ssize_t); +extern int My_PyUnicode_AsWideChar(PyUnicodeObject *, wchar_t *, Py_ssize_t); #endif
