OSDN Git Service

* include/wctype.h (towupper, towlower): Change arg and return value
authordannysmith <dannysmith>
Wed, 10 Aug 2005 10:10:29 +0000 (10:10 +0000)
committerdannysmith <dannysmith>
Wed, 10 Aug 2005 10:10:29 +0000 (10:10 +0000)
types to wint_t.
* include/ctype.h (towupper, towlower): Likewise.

winsup/mingw/ChangeLog
winsup/mingw/include/ctype.h
winsup/mingw/include/wctype.h

index d08ffe5..5fc2e9a 100644 (file)
@@ -1,5 +1,11 @@
 2005-08-10  Danny Smith  <dannysmith@users.sourceforge.net>
 
+       * include/wctype.h (towupper, towlower): Change arg and return value
+       types to wint_t.
+       * include/ctype.h (towupper, towlower): Likewise.
+
+2005-08-10  Danny Smith  <dannysmith@users.sourceforge.net>
+
        * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with 
        a diagnostic, guarded by #ifdef DEBUG.
        (__mingwthr_remove_key_dtor): Likewise.
index 1c321b6..f4020af 100644 (file)
@@ -187,8 +187,11 @@ _CRTIMP int __cdecl iswspace(wint_t);
 _CRTIMP int __cdecl iswupper(wint_t);
 _CRTIMP int __cdecl iswxdigit(wint_t);
 
-_CRTIMP wchar_t __cdecl towlower(wchar_t);
-_CRTIMP wchar_t __cdecl towupper(wchar_t);
+/* Older MS docs uses wchar_t for arg and return type, while newer
+   online MS docs say arg is wint_t and return is int.
+   ISO C uses wint_t for both.  */
+_CRTIMP wint_t __cdecl towlower (wint_t);
+_CRTIMP wint_t __cdecl towupper (wint_t);
 
 _CRTIMP int __cdecl isleadbyte (int);
 
index 533163e..ed8f05f 100644 (file)
@@ -79,8 +79,11 @@ _CRTIMP int __cdecl  iswspace(wint_t);
 _CRTIMP int __cdecl    iswupper(wint_t);
 _CRTIMP int __cdecl    iswxdigit(wint_t);
 
-_CRTIMP wchar_t __cdecl        towlower(wchar_t);
-_CRTIMP wchar_t __cdecl        towupper(wchar_t);
+/* Older MS docs uses wchar_t for arg and return type, while newer
+   online MS docs say arg is wint_t and return is int.
+   ISO C uses wint_t for both.  */
+_CRTIMP wint_t __cdecl towlower (wint_t);
+_CRTIMP wint_t __cdecl towupper (wint_t);
 
 _CRTIMP int __cdecl    isleadbyte (int);