From 74a3bec592c53078226818e0d732f9f81cfb5d7f Mon Sep 17 00:00:00 2001 From: Andrew MacIntyre Date: Thu, 13 Jun 2002 11:55:14 +0000 Subject: [PATCH] _Py prefix is verboten for static entry points --- Modules/unicodedata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 6dcd31a887..60cb412b97 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -277,7 +277,7 @@ _gethash(const char *s, int len, int scale) } static int -_Py_getname(Py_UCS4 code, char* buffer, int buflen) +_getucname(Py_UCS4 code, char* buffer, int buflen) { int offset; int i; @@ -334,7 +334,7 @@ _cmpname(int code, const char* name, int namelen) /* check if code corresponds to the given name */ int i; char buffer[NAME_MAXLEN]; - if (!_Py_getname(code, buffer, sizeof(buffer))) + if (!_getucname(code, buffer, sizeof(buffer))) return 0; for (i = 0; i < namelen; i++) { if (toupper(name[i]) != buffer[i]) @@ -384,7 +384,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code) static const _PyUnicode_Name_CAPI hashAPI = { sizeof(_PyUnicode_Name_CAPI), - _Py_getname, + _getucname, _getcode }; @@ -407,7 +407,7 @@ unicodedata_name(PyObject* self, PyObject* args) return NULL; } - if (!_Py_getname((Py_UCS4) *PyUnicode_AS_UNICODE(v), + if (!_getucname((Py_UCS4) *PyUnicode_AS_UNICODE(v), name, sizeof(name))) { if (defobj == NULL) { PyErr_SetString(PyExc_ValueError, "no such name"); -- 2.40.0