diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2002-03-03 02:59:16 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2002-03-03 02:59:16 (GMT) |
commit | 7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2 (patch) | |
tree | 9da72d3e52c043d4fc5437967ddb9a0f0226b6e9 /Modules/unicodedata.c | |
parent | 38b504e9e3ef3049815779e8c18b62f690ec4ed2 (diff) | |
download | cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.zip cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.gz cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.bz2 |
OS/2 EMX port changes (Modules part of patch #450267):
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r-- | Modules/unicodedata.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 36c96e4..20b53a7 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -277,7 +277,7 @@ _gethash(const char *s, int len, int scale) } static int -_getname(Py_UCS4 code, char* buffer, int buflen) +_Py_getname(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 (!_getname(code, buffer, sizeof(buffer))) + if (!_Py_getname(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), - _getname, + _Py_getname, _getcode }; @@ -407,7 +407,7 @@ unicodedata_name(PyObject* self, PyObject* args) return NULL; } - if (!_getname((Py_UCS4) *PyUnicode_AS_UNICODE(v), + if (!_Py_getname((Py_UCS4) *PyUnicode_AS_UNICODE(v), name, sizeof(name))) { if (defobj == NULL) { PyErr_SetString(PyExc_ValueError, "no such name"); |