Add isblank and iswblank C99 functions.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@39 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-crt/ChangeLog b/mingw-w64-crt/ChangeLog
index f7865f0..bbcfb7d 100755
--- a/mingw-w64-crt/ChangeLog
+++ b/mingw-w64-crt/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-21  Kai Tietz  <kai.tietz@onevision.com>
+
+	* Makefile: Add isblank.c and iswblank.c.
+	* isblank.c, iswblank.c: New.
+
 2007-08-21  Professor Brian Ripley  <ripley@stats.ox.ac.uk>
 
 	* dllmain.c: Remove deprecated reference to global
diff --git a/mingw-w64-crt/Makefile b/mingw-w64-crt/Makefile
index 60d776e..57d4b9c 100755
--- a/mingw-w64-crt/Makefile
+++ b/mingw-w64-crt/Makefile
@@ -191,7 +191,7 @@
 	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 seterrno.o \
-	sleep.o alarm.o getlogin.o gettimeofday.o wassert.o
+	sleep.o alarm.o getlogin.o gettimeofday.o wassert.o isblank.o iswblank.o
 
 STDLIB_OBJS = \
 	strtold.o wcstold.o
@@ -222,7 +222,7 @@
 gccmain.c init.c install-sh jamfile mkinstalldirs \
 natstart.c gs_support.c atonexit.c \
 mthr.c mthr_init.c mthr_stub.c readme.txt \
-isascii.c iscsym.c iscsymf.c toascii.c \
+isascii.c iscsym.c iscsymf.c toascii.c isblank.c iswblank.c \
 strcasecmp.c strncasecmp.c wcscmpi.c \
 CRT_fp8.c CRT_fp10.c test_headers.c txtmode.c binmode.c pseudo-reloc.c \
 pseudo-reloc-list.c atonexit.c dllmain.c dllentry.c \
diff --git a/mingw-w64-headers/include/ChangeLog b/mingw-w64-headers/include/ChangeLog
index d173b28..2815405 100755
--- a/mingw-w64-headers/include/ChangeLog
+++ b/mingw-w64-headers/include/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-21  Kai Tietz  <kai.tietz@onevision.com>
+
+	* ctype.h: wchar.h: Add isblank () and iswblank ().
+
 2007-08-21  Professor Brian Ripley  <ripley@stats.ox.ac.uk>
 
 	* stdargs.h: Remove spurious extra '#endif' in file.
diff --git a/mingw-w64-headers/include/ctype.h b/mingw-w64-headers/include/ctype.h
index 89993f9..4d449ee 100755
--- a/mingw-w64-headers/include/ctype.h
+++ b/mingw-w64-headers/include/ctype.h
@@ -113,6 +113,10 @@
   _CRTIMP int __cdecl __toascii(int _C);

   _CRTIMP int __cdecl __iscsymf(int _C);

   _CRTIMP int __cdecl __iscsym(int _C);

+
+#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
+int __cdecl isblank(int _C);
+#endif
 #endif

 

 #ifndef _WCTYPE_DEFINED

@@ -154,6 +158,10 @@
   _CRTIMP int __cdecl __iswcsym(wint_t _C);

   _CRTIMP int __cdecl _iswcsym_l(wint_t _C,_locale_t _Locale);

   _CRTIMP int __cdecl is_wctype(wint_t _C,wctype_t _Type);

+
+#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
+int __cdecl iswblank(wint_t _C);
+#endif
 #endif

 

 #ifndef _CTYPE_DISABLE_MACROS

@@ -227,7 +235,7 @@
 #define _iswcsymf_l(_c,_p) (_iswalpha_l(_c,_p) || ((_c)=='_'))

 #define _iswcsym_l(_c,_p) (_iswalnum_l(_c,_p) || ((_c)=='_'))

 #endif

-

+
 #ifndef	NO_OLDNAMES

 #ifndef _CTYPE_DEFINED

   _CRTIMP int __cdecl isascii(int _C);

diff --git a/mingw-w64-headers/include/wctype.h b/mingw-w64-headers/include/wctype.h
index eadfcff..3fa1668 100755
--- a/mingw-w64-headers/include/wctype.h
+++ b/mingw-w64-headers/include/wctype.h
@@ -104,6 +104,9 @@
   _CRTIMP int __cdecl __iswcsymf(wint_t);

   _CRTIMP int __cdecl __iswcsym(wint_t);

   _CRTIMP int __cdecl is_wctype(wint_t,wctype_t);

+#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES)
+int __cdecl isblank(int _C);
+#endif
 #endif

 

 #ifndef _WCTYPE_INLINE_DEFINED