]> granicus.if.org Git - python/commitdiff
Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy()
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 3 Sep 2010 16:18:00 +0000 (16:18 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 3 Sep 2010 16:18:00 +0000 (16:18 +0000)
Include/unicodeobject.h
Objects/unicodeobject.c

index b6a7fcafb9784bef27002663f0d27d2c72768ad7..0de0d66d76b955c1b65ce2b9593007cb13a9d28e 100644 (file)
@@ -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
     );
 
index 80e2e63fce28f0cb3e04558360936885e5af81e6..9cdf90d159c7dba47e08448959667bf34f4b641b 100644 (file)
@@ -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;