diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2006-08-03 11:44:30 +0400 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2006-08-03 11:44:30 +0400 |
commit | bb1a7afa67fc055bfcb4a91d6295c1067980387a (patch) | |
tree | 400a5d32e3d75985c3e612f5f9f4cbf4d7a742a9 /winsup/mingw/mingwex | |
parent | 9e4051d4b71df918c6f343d47272aa91a1e9f357 (diff) |
* include/ctype.h (_BLANK): Expand comment.
(isblank): Add prototype and inline definition.
(iswblank): Add prototype and inline definition.
* include/wctype.h (iswblank): Add prototype and inline definition.
* mingwex/isblank.c: New file.
* mingwex/iswblank.c: New file.
* mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
Diffstat (limited to 'winsup/mingw/mingwex')
-rw-r--r-- | winsup/mingw/mingwex/Makefile.in | 6 | ||||
-rwxr-xr-x | winsup/mingw/mingwex/isblank.c | 5 | ||||
-rwxr-xr-x | winsup/mingw/mingwex/iswblank.c | 5 |
3 files changed, 14 insertions, 2 deletions
diff --git a/winsup/mingw/mingwex/Makefile.in b/winsup/mingw/mingwex/Makefile.in index 1b7609910..89ea204e7 100644 --- a/winsup/mingw/mingwex/Makefile.in +++ b/winsup/mingw/mingwex/Makefile.in @@ -36,7 +36,7 @@ DISTFILES = Makefile.in configure configure.in \ wcstoimax.c wcstold.c wcstoumax.c wctrans.c wctype.c \ wdirent.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c wtoll.c \ wcrtomb.c wctob.c mbrtowc.c btowc.c mb_wc_common.h \ - gettimeofday.c + gettimeofday.c isblank.c iswblank.c MATH_DISTFILES = \ acosf.c acosl.c asinf.c asinl.c atan2f.c atan2l.c \ atanf.c atanl.c cbrt.c cbrtf.c cbrtl.c ceilf.S ceill.S \ @@ -118,6 +118,8 @@ Q8_OBJS = \ strtoimax.o strtoumax.o wcstoimax.o wcstoumax.o \ wmemchr.o wmemcmp.o wmemcpy.o wmemmove.o wmemset.o \ wctrans.o wctype.o wcrtomb.o wctob.o mbrtowc.o btowc.o +CTYPE_OBJS = \ + isblank.o iswblank.o STDLIB_OBJS = \ strtold.o wcstold.o STDLIB_STUB_OBJS = \ @@ -178,7 +180,7 @@ COMPLEX_OBJS = \ csinl.o csinh.o csinhf.o csinhl.o csqrt.o csqrtf.o csqrtl.o \ ctan.o ctanf.o ctanl.o ctanh.o ctanhf.o ctanhl.o -LIB_OBJS = $(Q8_OBJS) $(STDLIB_OBJS) $(STDLIB_STUB_OBJS) \ +LIB_OBJS = $(Q8_OBJS) $(CTYPE_OBJS) $(STDLIB_OBJS) $(STDLIB_STUB_OBJS) \ $(STDIO_OBJS) $(MATH_OBJS) $(FENV_OBJS) \ $(POSIX_OBJS) $(REPLACE_OBJS) $(COMPLEX_OBJS) diff --git a/winsup/mingw/mingwex/isblank.c b/winsup/mingw/mingwex/isblank.c new file mode 100755 index 000000000..d3ba74d39 --- /dev/null +++ b/winsup/mingw/mingwex/isblank.c @@ -0,0 +1,5 @@ +#define __NO_CTYPE_LINES +#include <ctype.h> + +int _cdecl isblank (int c) +{return (_isctype(c, _BLANK) || c == '\t');} diff --git a/winsup/mingw/mingwex/iswblank.c b/winsup/mingw/mingwex/iswblank.c new file mode 100755 index 000000000..316168940 --- /dev/null +++ b/winsup/mingw/mingwex/iswblank.c @@ -0,0 +1,5 @@ +#define __NO_CTYPE_LINES +#include <wctype.h> + +int __cdecl iswblank (wint_t wc) + {return (iswctype(wc, _BLANK) || wc == L'\t');} |