From: Victor Stinner Date: Fri, 3 Sep 2010 16:18:00 +0000 (+0000) Subject: Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy() X-Git-Tag: v3.2a2~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46408606d80347108a6550805d29402d2771bda3;p=python Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy() --- diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index b6a7fcafb9..0de0d66d76 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1607,7 +1607,7 @@ PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strrchr( and raise a MemoryError exception on memory allocation failure, otherwise return a new allocated buffer (use PyMem_Free() to free the buffer). */ -PyAPI_FUNC(Py_UNICODE*) PyUnicode_strdup( +PyAPI_FUNC(Py_UNICODE*) PyUnicode_AsUnicodeCopy( PyObject *unicode ); diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 80e2e63fce..9cdf90d159 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -10015,7 +10015,7 @@ Py_UNICODE_strrchr(const Py_UNICODE *s, Py_UNICODE c) } Py_UNICODE* -PyUnicode_strdup(PyObject *object) +PyUnicode_AsUnicodeCopy(PyObject *object) { PyUnicodeObject *unicode = (PyUnicodeObject *)object; Py_UNICODE *copy;