diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-22 23:07:07 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-22 23:07:07 +0200 |
| commit | 2a404b63d48d73bbaa007d89efb7a01048475acd (patch) | |
| tree | 66a217f6efa01478ca1741218fb059112675b0f1 /Include/unicodeobject.h | |
| parent | d528791096694307884762eebc8ec6fed279f302 (diff) | |
| download | cpython-git-2a404b63d48d73bbaa007d89efb7a01048475acd.tar.gz | |
Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
is now of type "const char *" rather of "char *".
Diffstat (limited to 'Include/unicodeobject.h')
| -rw-r--r-- | Include/unicodeobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 87cd96d903..6a0740a0d7 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1135,7 +1135,7 @@ PyAPI_FUNC(int) PyUnicode_ClearFreeList(void); */ #ifndef Py_LIMITED_API -PyAPI_FUNC(char *) PyUnicode_AsUTF8AndSize( +PyAPI_FUNC(const char *) PyUnicode_AsUTF8AndSize( PyObject *unicode, Py_ssize_t *size); #define _PyUnicode_AsStringAndSize PyUnicode_AsUTF8AndSize @@ -1162,7 +1162,7 @@ PyAPI_FUNC(char *) PyUnicode_AsUTF8AndSize( */ #ifndef Py_LIMITED_API -PyAPI_FUNC(char *) PyUnicode_AsUTF8(PyObject *unicode); +PyAPI_FUNC(const char *) PyUnicode_AsUTF8(PyObject *unicode); #define _PyUnicode_AsString PyUnicode_AsUTF8 #endif |
