summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 01:02:42 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 01:02:42 (GMT)
commitbeb4135b8c81e1dbbb841ecd7355ab5a09a3edd2 (patch)
tree5477c04eae02035c7d3df9efb50f3a7fc6dd78a1 /Doc/c-api
parentef12810f0c23a0c0e8b276e76d289f0f211ab5bb (diff)
downloadcpython-beb4135b8c81e1dbbb841ecd7355ab5a09a3edd2.zip
cpython-beb4135b8c81e1dbbb841ecd7355ab5a09a3edd2.tar.gz
cpython-beb4135b8c81e1dbbb841ecd7355ab5a09a3edd2.tar.bz2
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().
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/unicode.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index aae2b4a..8f9e994 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -462,7 +462,7 @@ wchar_t support for platforms which support it:
required by the application.
-.. c:function:: wchar_t* PyUnicode_AsWideCharString(PyUnicodeObject *unicode, Py_ssize_t *size)
+.. c:function:: wchar_t* PyUnicode_AsWideCharString(PyObject *unicode, Py_ssize_t *size)
Convert the Unicode object to a wide character string. The output string
always ends with a nul character. If *size* is not *NULL*, write the number