@@ -935,7 +935,7 @@ wchar_t Support
935
935
Return *NULL * on failure.
936
936
937
937
938
- .. c :function :: Py_ssize_t PyUnicode_AsWideChar (PyUnicodeObject *unicode, wchar_t *w, Py_ssize_t size)
938
+ .. c :function :: Py_ssize_t PyUnicode_AsWideChar (PyObject *unicode, wchar_t *w, Py_ssize_t size)
939
939
940
940
Copy the Unicode object contents into the :c:type: `wchar_t ` buffer *w *. At most
941
941
*size * :c:type: `wchar_t ` characters are copied (excluding a possibly trailing
@@ -1346,7 +1346,7 @@ These are the "Raw Unicode Escape" codec APIs:
1346
1346
1347
1347
1348
1348
.. c :function :: PyObject* PyUnicode_EncodeRawUnicodeEscape (const Py_UNICODE *s, \
1349
- Py_ssize_t size, const char *errors )
1349
+ Py_ssize_t size)
1350
1350
1351
1351
Encode the :c:type: `Py_UNICODE ` buffer of the given *size * using Raw-Unicode-Escape
1352
1352
and return a bytes object. Return *NULL * if an exception was raised by the codec.
@@ -1515,8 +1515,8 @@ the user settings on the machine running the codec.
1515
1515
Return *NULL * if an exception was raised by the codec.
1516
1516
1517
1517
1518
- .. c :function :: PyObject* PyUnicode_DecodeMBCSStateful (const char *s, int size, \
1519
- const char *errors, int *consumed)
1518
+ .. c :function :: PyObject* PyUnicode_DecodeMBCSStateful (const char *s, Py_ssize_t size, \
1519
+ const char *errors, Py_ssize_t *consumed)
1520
1520
1521
1521
If *consumed * is *NULL *, behave like :c:func: `PyUnicode_DecodeMBCS `. If
1522
1522
*consumed * is not *NULL *, :c:func: `PyUnicode_DecodeMBCSStateful ` will not decode
0 commit comments