tjr
c6cbf33b5a
Protect arguments to the putwc and putwchar macros with parens.
2002-09-12 10:27:48 +00:00
tjr
5f5cd9d0b8
Add an implementation of wcsftime() (wide character version of strftime()).
2002-09-11 08:57:11 +00:00
tjr
80df78435a
Replace FILE with struct __sFILE in the prototypes for the wide character
...
I/O functions to avoid having to bring in pollution from <stdio.h>.
Suggested by: bde
2002-09-10 09:43:28 +00:00
tjr
7ca7dd3e03
Remove the typedef of wctype_t from this header; we don't support the
...
XSI mistake of making everything from <wctype.h> visible here.
If we did choose to support it, we could just #include <wctype.h>.
2002-09-09 07:17:55 +00:00
tjr
7c848d9cfd
Add wcstol() and wcstoul(), based on strtol() and strtoul().
2002-09-08 13:27:26 +00:00
tjr
9445b1b57c
Add an implementation of wcstok(), based on strtok_r().
2002-09-07 08:16:57 +00:00
tjr
a0ad34a541
Add restrict qualifiers to wcsstr()'s arguments.
2002-09-07 03:38:13 +00:00
tjr
cd5ca96599
Style: One space between "restrict" qualifier and "*".
2002-09-06 11:24:06 +00:00
mike
9e6f796b0d
o Merge <machine/ansi.h> and <machine/types.h> into a new header
...
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif
Concept by: bde
Reviewed by: jake, obrien
2002-08-21 16:20:02 +00:00
tjr
a79225f8d0
Restrict visibility of wcwidth() and wcswidth(); they are XSI extensions.
2002-08-20 22:44:40 +00:00
ache
86ecb5818b
Sort unsorted prototypes
2002-08-19 21:00:13 +00:00
ache
426d833605
Activate (uncomment) wcwidth() and wcswidth() now implemented
2002-08-19 20:48:18 +00:00
tjr
a87152b560
Implement the ISO C90 Amd.1 restartable wide and multibyte character
...
manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(),
wcrtomb(), wcsrtombs().
2002-08-18 06:30:10 +00:00
tjr
294097ed71
Basic support for wide character I/O: getwc(), fgetwc(), getwchar(),
...
putwc(), fputwc(), putwchar(), ungetwc(), fwide().
2002-08-13 09:30:41 +00:00
tjr
2fbfd25f94
Sort prototypes by function name.
2002-08-06 06:26:06 +00:00
tjr
464f6c7f7e
Whitespace formatting changes: line up macro bodies, function names,
...
place tabs after #define and typedef. Sort typedefs by name.
Requested by: mike
2002-08-06 05:19:33 +00:00
tjr
2e02b2970d
Change wctype_t to an unsigned type to avoid warnings.
2002-08-04 12:43:53 +00:00
tjr
eefed45007
Add ISO C90 Amd. 1 btowc(3) and wctob(3) functions.
2002-08-03 13:49:55 +00:00
tjr
2ddf585cad
Add ISO C90 Amd. 1 wctype(3) and iswctype(3) functions.
2002-08-03 04:18:40 +00:00
obrien
76a90f7d49
Don't define wchar_t if we are a C++ compiler.
...
PR: 31864, 40084
2002-07-09 05:13:30 +00:00
imp
300518c0a1
Breath deep and take __P out of the system include files.
...
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
2002-03-23 17:24:55 +00:00
obrien
f4b8f61c0d
VCS ID fixup
2001-07-10 17:50:46 +00:00
tshiozak
e2bb65a7f1
adapt to FreeBSD.
...
- add #define NULL 0 instead of sys/null.h.
- enable locale-insensitive functions:
wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
- disable some locale-sensitive functions defined in wchar.h temporarily:
mbrlen mbrtowc mbsinit mbsrtowcs wcrtomb wcsrtombs wcwidth wcswidth
- disable all functions defined in wctype.h temporarily:
is* tow*
2001-05-15 20:28:48 +00:00
tshiozak
7cf2738d94
initial import of wchar.h and wctype.h
...
Obtained from: NetBSD and Citrus XPG4DL
2001-05-15 19:35:57 +00:00