summaryrefslogtreecommitdiff
path: root/include/ctype.h
AgeCommit message (Collapse)Author
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