summaryrefslogtreecommitdiffstats
path: root/include/ctype.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* allow extern inline stuff to proceed unchanged thru the mess that theespie2007-03-171-1/+5
| | | | | | | | 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.
* First step in include files overhaul. Use __FOO_VISIBLE (as definedmillert2005-12-131-5/+13
| | | | | in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
* activate LC_CTYPE for 8 bits locale.espie2005-08-081-3/+3
| | | | | | | Make sure tolower/toupper use the whole 8 bits. okay deraadt@ thanks to everyone who tested
* fix non-gnu ansi compilers by not using 'inline' but '__inline' instead.avsm2004-04-021-2/+2
| | | | | lets tendra build again. ok deraadt@, pvalchev@, millert@
* If lint is defined, act like _ANSI_LIBRARY was defined. That waymillert2004-01-151-5/+5
| | | | | lint gets the prototypes it expects and doesn't get confused by the inline functions. OK deraadt@
* Allow this to compile on non-gcc. OK deraadt@ art@millert2004-01-131-19/+31
|
* Remove an extraneous "& 0xff" (the cast to unsigned char is sufficient).millert2003-06-101-37/+38
| | | | | | | 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.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Back out __EOF stuff and just use -1 in ctype.h. This is OK sincemillert2002-12-301-16/+12
| | | | | we don't want any user defines to change how the inlined ctype functions behave.
* Don't define EOF In ctype.h, some 3rd party code checks whether ormillert2002-12-291-13/+15
| | | | | not EOF is defined to determine if stdio.h has been included. Instead, use __EOF which should be OK wrt namespace safety.
* Casting to unsigned int in isfoo() causes problems on alpha andmillert2002-12-151-12/+12
| | | | | | | 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.
* fix typo; noticed by David Krausemillert2002-12-141-2/+2
|
* Instead of doing "if (c == EOF) return 0;" use the hook ('?') operatormillert2002-12-141-34/+12
| | | | | instead to make these one-liners. Works around a compiler bug on vax that affects both the libc and inline versions identically.
* Less stupid check for 7-bit ascii in toupper/tolowermillert2002-12-131-6/+4
| | | | Remove useless check for EOF in isascii
* Cast to unsigned int, not unsigned char, since what is being cast is anmillert2002-12-131-15/+15
| | | | int, not a char.
* Convert ctype.h macros into inline functions. This fixes the issues wemillert2002-12-111-39/+142
| | | | | | 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@.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-19/+19
|
* make ctype macros on char 0x82 and such workderaadt1998-04-301-16/+16
|
* Well, as we are heading for a release people are encouraged to rebuild theirniklas1997-09-211-0/+1
| | | | | entire trees for testing anyway, I might as well do this intrusive touching of include files now. Added openBSD tags.
* initial import of NetBSD treederaadt1995-10-181-0/+108