]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108767: Replace ctype.h functions with pyctype.h functions (#108772)
authorVictor Stinner <vstinner@python.org>
Fri, 1 Sep 2023 16:36:53 +0000 (18:36 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2023 16:36:53 +0000 (18:36 +0200)
commit578ebc5d5fab2e5e0b87636361c6aeb8d2b287fa
tree36df000be6a6d903c51fe5db44e9cf93625cadeb
parent03c5a685689fd4891d01caff8da01096fcf73d5a
gh-108767: Replace ctype.h functions with pyctype.h functions (#108772)

Replace <ctype.h> locale dependent functions with Python "pyctype.h"
locale independent functions:

* Replace isalpha() with Py_ISALPHA().
* Replace isdigit() with Py_ISDIGIT().
* Replace isxdigit() with Py_ISXDIGIT().
* Replace tolower() with Py_TOLOWER().

Leave Modules/_sre/sre.c unchanged, it uses locale dependent
functions on purpose.

Include explicitly <ctype.h> in _decimal.c to get isascii().
Modules/_decimal/_decimal.c
Modules/_zoneinfo.c
Modules/getaddrinfo.c
Objects/bytesobject.c
Parser/tokenizer.c
Python/pystrcmp.c