summaryrefslogtreecommitdiff
path: root/include/ctype.h
AgeCommit message (Collapse)Author
2007-03-17allow extern inline stuff to proceed unchanged thru the mess that theMarc Espie
combined GCC and ISO committees managed to make out of it. With this, gcc >= 4.3 can grok its way through it correctly. okay kettenis@, with some help figuring stuff out.
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2005-08-08activate LC_CTYPE for 8 bits locale.Marc Espie
Make sure tolower/toupper use the whole 8 bits. okay deraadt@ thanks to everyone who tested
2004-04-02fix non-gnu ansi compilers by not using 'inline' but '__inline' instead.Anil Madhavapeddy
lets tendra build again. ok deraadt@, pvalchev@, millert@
2004-01-15If lint is defined, act like _ANSI_LIBRARY was defined. That wayTodd C. Miller
lint gets the prototypes it expects and doesn't get confused by the inline functions. OK deraadt@
2004-01-13Allow this to compile on non-gcc. OK deraadt@ art@Todd C. Miller
2003-06-10Remove an extraneous "& 0xff" (the cast to unsigned char is sufficient).Todd C. Miller
Use "extern __inline" instead of "static __inline" since the extern flavor behaves more like a macro (which is what we want). OK deraadt@ and tested on all platforms by various folks.
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-12-30Back out __EOF stuff and just use -1 in ctype.h. This is OK sinceTodd C. Miller
we don't want any user defines to change how the inlined ctype functions behave.
2002-12-29Don't define EOF In ctype.h, some 3rd party code checks whether orTodd C. Miller
not EOF is defined to determine if stdio.h has been included. Instead, use __EOF which should be OK wrt namespace safety.
2002-12-15Casting to unsigned int in isfoo() causes problems on alpha andTodd C. Miller
sparc64. Change cast back to unsigned char but do a bitwise AND with 0xff to avoid any sign extension weirdness and to make it impossible for us to overflow _C_ctype_. The bitwise AND is probably not needed and may be removed later if this does not trigger compiler bugs.
2002-12-14fix typo; noticed by David KrauseTodd C. Miller
2002-12-14Instead of doing "if (c == EOF) return 0;" use the hook ('?') operatorTodd C. Miller
instead to make these one-liners. Works around a compiler bug on vax that affects both the libc and inline versions identically.
2002-12-13Less stupid check for 7-bit ascii in toupper/tolowerTodd C. Miller
Remove useless check for EOF in isascii
2002-12-13Cast to unsigned int, not unsigned char, since what is being cast is anTodd C. Miller
int, not a char.
2002-12-11Convert ctype.h macros into inline functions. This fixes the issues weTodd C. Miller
currently have with the macro versions and makes the ctype.h versions 100% identical to what is in libc. Discussed with pjanzen@ and OK'd by deraadt@.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
1998-04-30make ctype macros on char 0x82 and such workTheo de Raadt
1997-09-21Well, as we are heading for a release people are encouraged to rebuild theirNiklas Hallqvist
entire trees for testing anyway, I might as well do this intrusive touching of include files now. Added openBSD tags.
1995-10-18initial import of NetBSD treeTheo de Raadt