summaryrefslogtreecommitdiffstats
path: root/include/ctype.h
Commit message (Collapse)AuthorAgeFilesLines
* Oops, fix typo in istype definitionache1997-09-271-1/+1
|
* 1) Bring '!!' back since we wan't overflow even a charache1997-09-271-17/+19
| | | | | | 2) Revive __maskrune, just return mask now 3) Express __istype via !!__maskrune 4) Use __maskrune in digittoint
* Oops, wrong version of digittoint fix was commited, step back to v1.8ache1997-09-251-8/+6
| | | | | instead just remove '!!' to make digittoint() work and re-arrange things a little
* Fix digittoint broken long agoache1997-09-251-14/+8
| | | | | Redesign to allow digittoint work for runes too __maskrune removed, __istype become a macro, __runeflags added
* Bandaid for the build-breaking reference to _BSD_RUNE_T_. I'm not surepeter1997-09-251-3/+3
| | | | that this is right, but the old reference defaintely was not.
* Submitted by: Sin'ichiro MIYATANI / Phase One, Inc <siu@phaseone.co.jp>julian1997-09-241-1/+10
| | | | | Basic support for the Shift JIS encoding of japanese. (and one tiny typo fixed in a comment)
* Fixed longstanding namespace convolution involving rune_t vs wchar_t.bde1996-05-011-14/+14
| | | | | | | | | | | If _ANSI_SOURCE or _POSIX_SOURCE is defined, then <ctype.h> had to be included before <stddef.h> or <stdlib.h> to get rune_t declared. Now rune_t is declared perfectly bogusly in all cases when <ctype.h> is included. This change breaks similar (but more convoluted) convolutions in the stddef.h in gcc distributions. Ports of gcc should avoid using the gcc headers.
* Slightly simplify inlined functionsache1996-03-251-6/+3
|
* Fix isspecial/isphonogram, they was swappedache1995-11-031-18/+13
| | | | | | Remove EOF hack, now it is recognized per ANSI/POSIX Add upper bounds check Handle all negative chars inside locale functions
* Reviewed by: ache and wollman (long ago)bde1995-04-071-52/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix numerous ANSI conformance bugs and other nits. ctype.h: o There were no prototypes behind the macros (conformance bug). o isascii() didn't have enough parentheses (plain bug). o tolower() and toupper were always static inline (conformance bug? You could undef them and take their address, but this gave different addresses in different modules. You couldn't undef them and declare them (correctly) again). <stdio.h>'s treatment of putc() shows one way to handle this problem, but it only works because the putc() macro is allowed to reevaluate its args. I used a hack controlled by _EXTERNALIZE_CTYPE_INLINES_ to get <ctype.h> to generate the code (the previous hack involving _ANSI_LIBRARY_ goes away). This has the advantage that the core of the functions is only written down once and the disadvantage that another layer of functions is required. The extra layer goes away if inline functions are used, leaving only the problem of understanding why there are functions named toupper(), __toupper and ___toupper() as well as a macro named toupper. o Nothing seems to define _USE_CTYPE_LIBRARY_. Eliminate it o Let the user set _USE_CTYPE_INLINE_ and _DONT_USE_CTYPE_INLINE_ for full control over inlining. o The args for the inline functions didn't have enough underscores (conformance bug). o The formatting and ordering was inconsistent (style bug). o TODO: fix conformance bugs brought by including <runetype.h>.
* Move inline args out of user namespace.ache1995-04-071-20/+20
| | | | Obtained from: 1.x
* Remove EOF handling after Bruce explanation. This step returnsache1994-10-091-13/+0
| | | | | to 4.4 way to not allow EOF in ctype and now all signed chars (including '\377' which becomes EOF) converted to (unsigned char) properly.
* Handle EOF case in all macros by ANSI standard.ache1994-10-081-0/+21
| | | | | Cast all ints < 0 to (unsigned char) to fix common problem with sign extention on signed char.
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+147
OpenPOWER on IntegriCloud