mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString().
This commit is contained in:
parent
ef12810f0c
commit
beb4135b8c
9 changed files with 14 additions and 14 deletions
|
@ -581,7 +581,7 @@ PyAPI_FUNC(Py_ssize_t) PyUnicode_AsWideChar(
|
|||
MemoryError. */
|
||||
|
||||
PyAPI_FUNC(wchar_t*) PyUnicode_AsWideCharString(
|
||||
PyUnicodeObject *unicode, /* Unicode object */
|
||||
PyObject *unicode, /* Unicode object */
|
||||
Py_ssize_t *size /* number of characters of the result */
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue