#
af730bf1 |
| 20-Mar-2020 |
joerg <joerg@NetBSD.org> |
Fix visibility of various C99 features, esp. for C++11.
|
#
668d06e9 |
| 28-Apr-2013 |
joerg <joerg@NetBSD.org> |
Include at least ctype_bits.h, even when not providing the macros.
|
#
a74df2a3 |
| 26-Apr-2013 |
joerg <joerg@NetBSD.org> |
Do not define the ctype(3) interface via macros for C++.
|
#
4e2459a9 |
| 16-Apr-2013 |
joerg <joerg@NetBSD.org> |
Add isalpha_l and friends.
|
#
9a35d797 |
| 01-Jun-2010 |
tnozaki <tnozaki@NetBSD.org> |
more split ctype.h -> sys/ctype_inline.h, sys/ctype_bits.h
|
#
64a7d4fa |
| 22-May-2010 |
tnozaki <tnozaki@NetBSD.org> |
1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h. 2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database. because 1<<CHAR_
1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h. 2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database. because 1<<CHAR_BIT is MD, so i added MI macro _CTYPE_CACHE_SIZE(1<<8). 3. remove _NB_CACHED_RUNE macro, use _CTYPE_CACHE_SIZE instead.
show more ...
|
#
5f65228b |
| 26-Dec-2005 |
perry <perry@NetBSD.org> |
u_intN_t -> uintN_t
|
#
7f8368c3 |
| 15-Apr-2005 |
rillig <rillig@NetBSD.org> |
Replaced the macro name "notyet" with a 0. There's always the possibility that a strictly conforming C program uses that name itself, so it had to be removed. Also put the long comment above the #if
Replaced the macro name "notyet" with a 0. There's always the possibility that a strictly conforming C program uses that name itself, so it had to be removed. Also put the long comment above the #if 0, because it describes the #if, not the isblank() macro. Added two blank lines to make the grouping clear. Approved by kleink.
show more ...
|
#
19b7469a |
| 03-Feb-2005 |
perry <perry@NetBSD.org> |
de-__P -- the hack is long since useless. Discussed with christos, matt, kleink, others. Approved by christos.
|
#
96a5d45d |
| 05-Nov-2004 |
dsl <dsl@NetBSD.org> |
Remove the (int) cast from the array subscript of the ctype #defines. The cast just stops gcc detecting places where the functions are passed a 'char' variable - and will index off the array for byte
Remove the (int) cast from the array subscript of the ctype #defines. The cast just stops gcc detecting places where the functions are passed a 'char' variable - and will index off the array for byte values 0x80 to 0xff. All (I hope) of the places in the netbsd sources where this was a potential problem have had an (unsigned char) cast applied. Christos said he'll fix any fallout I've missed.
show more ...
|
#
22c6452b |
| 22-Oct-2003 |
kleink <kleink@NetBSD.org> |
_ISO_C99_SOURCE -> _ISOC99_SOURCE
|
#
039cc956 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22270, verified by myself.
|
#
3a344e27 |
| 29-Apr-2003 |
bjh21 <bjh21@NetBSD.org> |
Header file cleanup: * Sort includes. * isblank() is in C99, POSIX 2001 and XSH6. Update ifdefs accordingly.
|
#
4be7a2dc |
| 28-Apr-2003 |
bjh21 <bjh21@NetBSD.org> |
Add a new feature-test macro, _NETBSD_SOURCE. If this is defined by the application, all NetBSD interfaces are made visible, even if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
Add a new feature-test macro, _NETBSD_SOURCE. If this is defined by the application, all NetBSD interfaces are made visible, even if some other feature-test macro (like _POSIX_C_SOURCE) is defined. <sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE, _POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve existing behaviour.
This has two major advantages: + Programs that require non-POSIX facilities but define _POSIX_C_SOURCE can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS. + It makes most of the #ifs simpler, in that they're all now ORs of the various macros, rather than having checks for (!defined(_ANSI_SOURCE) || !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.
I've tried not to change the semantics of the headers in any case where _NETBSD_SOURCE wasn't defined, but there were some places where the current semantics were clearly mad, and retaining them was harder than correcting them. In particular, I've mostly normalised things so that _ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE, _XOPEN_SOURCE and _NETBSD_SOURCE in that order.
Tested by building for vax, encouraged by thorpej, and uncontested in tech-userlevel for a week.
show more ...
|
#
989dafca |
| 18-Apr-2001 |
thorpej <thorpej@NetBSD.org> |
If _CTYPE_PRIVATE, need to include <machine/limits.h> for CHAR_BIT.
|
#
7aa4bf8f |
| 17-Apr-2001 |
kleink <kleink@NetBSD.org> |
Replace (sizeof (char) << 3) with a less silly-looking CHAR_BIT; from Peter Seebach in PR standards/9333.
|
#
97776ad8 |
| 21-Jan-2001 |
itojun <itojun@NetBSD.org> |
have comment about strange use of _B
|
#
3f935d01 |
| 13-Jun-2000 |
simonb <simonb@NetBSD.org> |
Remove 'extern' from function declarations.
|
#
c903851a |
| 10-May-1998 |
kleink <kleink@NetBSD.org> |
Reorganize name space protection.
|
#
62817961 |
| 23-Mar-1998 |
mrg <mrg@NetBSD.org> |
cast the argument of ctype macros to (int).
|
#
dbda158f |
| 02-Jun-1997 |
kleink <kleink@NetBSD.org> |
Add support for localized character sets (a.k.a. LC_CTYPE).
Thanks go to Matthias Scheler <tron@lyssa.owl.de> for contributing his initial work in PR/3592, and to Christos Zoulas for refining it!
|
#
4d2cbfce |
| 26-Oct-1994 |
cgd <cgd@NetBSD.org> |
new RCS ID format.
|
#
e6b5ddd9 |
| 16-May-1994 |
cgd <cgd@NetBSD.org> |
update all but ctype.h, dumprestore.h, time.h to 4.4-Lite versions. USL copyright additions on those. Kill varargs.h, because it can simply be a link to the machine-dependent version.
|
#
9eff33dc |
| 05-Oct-1993 |
jtc <jtc@NetBSD.org> |
#ifdef out the isblank macro. Programs that use it will still work, as they will link in the isblank function.
|
#
06c97b08 |
| 14-Sep-1993 |
jtc <jtc@NetBSD.org> |
Added isblank() used by 4.4 and POSIX utilities like tr.
|