]> sourceware.org Git - newlib-cygwin.git/commit
ctype: use less short names in public header
authorMike Frysinger <vapier@gentoo.org>
Tue, 9 Nov 2021 00:28:16 +0000 (19:28 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 11 Nov 2021 22:26:45 +0000 (17:26 -0500)
commit3ba1bd0d9dbc015c14a0aaafcef042f706d1249a
treec90b5c4068f561c81c61dc418f697c4332093bc7
parent88c9008bb2a7377722968d3ec738ac44ceea8665
ctype: use less short names in public header

We're seeing a build failure in GNU sim code which is using _P locally
but the ctype.h define clashes with it.  Rename these to use the same
symbols that glibc does.  They're a bit more verbose, but seems likely
that we'll have fewer conflicts if glibc isn't seeing them.

However, these shortnames are still used internally by ctype modules
to produce pretty concise source code, so move the short names to the
internal ctype_.h where short name conflicts shouldn't show up.
24 files changed:
newlib/libc/ctype/ctype_.h
newlib/libc/ctype/isalnum.c
newlib/libc/ctype/isalnum_l.c
newlib/libc/ctype/isalpha.c
newlib/libc/ctype/isalpha_l.c
newlib/libc/ctype/isblank.c
newlib/libc/ctype/isblank_l.c
newlib/libc/ctype/iscntrl.c
newlib/libc/ctype/iscntrl_l.c
newlib/libc/ctype/isdigit.c
newlib/libc/ctype/isdigit_l.c
newlib/libc/ctype/islower.c
newlib/libc/ctype/islower_l.c
newlib/libc/ctype/isprint.c
newlib/libc/ctype/isprint_l.c
newlib/libc/ctype/ispunct.c
newlib/libc/ctype/ispunct_l.c
newlib/libc/ctype/isspace.c
newlib/libc/ctype/isspace_l.c
newlib/libc/ctype/isupper.c
newlib/libc/ctype/isupper_l.c
newlib/libc/ctype/isxdigit.c
newlib/libc/ctype/isxdigit_l.c
newlib/libc/include/ctype.h
This page took 0.037354 seconds and 5 git commands to generate.