diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-09-20 21:56:13 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-09-20 21:56:13 +0000 |
commit | 1e0e64c9d84785830a384dbf2d6c70a1bea9d3c8 (patch) | |
tree | 3ee3b6dd9856a6c135925d98eca3621afb1d426f /newlib | |
parent | 4ca88d4714eb5584f86bd0a0b9223edfb1d2dcc4 (diff) | |
download | newlib-1e0e64c9d84785830a384dbf2d6c70a1bea9d3c8.zip newlib-1e0e64c9d84785830a384dbf2d6c70a1bea9d3c8.tar.gz newlib-1e0e64c9d84785830a384dbf2d6c70a1bea9d3c8.tar.bz2 |
2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/wctype.h: New file.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/include/wctype.h | 43 |
2 files changed, 47 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 1da5734..3c8fd3b 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,9 @@ 2002-09-20 Jeff Johnston <jjohnstn@redhat.com> + * libc/include/wctype.h: New file. + +2002-09-20 Jeff Johnston <jjohnstn@redhat.com> + * libc/ctype/Makefile.am: Add new files. * libc/ctype/Makefile.in: Regenerated. * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype, diff --git a/newlib/libc/include/wctype.h b/newlib/libc/include/wctype.h new file mode 100644 index 0000000..77f10e4 --- /dev/null +++ b/newlib/libc/include/wctype.h @@ -0,0 +1,43 @@ +#ifndef _WCTYPE_H_ +#define _WCTYPE_H_ + +#include <_ansi.h> +#include <sys/_types.h> + +#define __need_wint_t +#include <stddef.h> + +#ifndef WEOF +# define WEOF ((wint_t)-1) +#endif + +#ifndef _WCTYPE_T +#define _WCTYPE_T +typedef int wctype_t; +#endif + +#ifndef _WCTRANS_T +#define _WCTRANS_T +typedef int wctrans_t; +#endif + +int _EXFUN(iswalpha, (wint_t)); +int _EXFUN(iswalnum, (wint_t)); +int _EXFUN(iswblank, (wint_t)); +int _EXFUN(iswcntrl, (wint_t)); +int _EXFUN(iswctype, (wint_t, wctype_t)); +int _EXFUN(iswdigit, (wint_t)); +int _EXFUN(iswgraph, (wint_t)); +int _EXFUN(iswlower, (wint_t)); +int _EXFUN(iswprint, (wint_t)); +int _EXFUN(iswpunct, (wint_t)); +int _EXFUN(iswspace, (wint_t)); +int _EXFUN(iswupper, (wint_t)); +int _EXFUN(iswxdigit, (wint_t)); +wint_t _EXFUN(towctrans, (wint_t, wctrans_t)); +wint_t _EXFUN(towupper, (wint_t)); +wint_t _EXFUN(towlower, (wint_t)); +wctrans_t _EXFUN(wctrans, (const char *)); +wctype_t _EXFUN(wctype, (const char *)); + +#endif /* _WCTYPE_H_ */ |