diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2005-02-25 01:48:38 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2005-02-25 01:48:38 +0000 |
commit | b7c201d5883435e51e30921eaa07bfd091b885db (patch) | |
tree | b78dc01a663820c9b683ac76f253216babab7df4 /winsup/mingw | |
parent | 7e9439a0eb2bd5494694dd750a3034c6a32babca (diff) | |
download | newlib-b7c201d5883435e51e30921eaa07bfd091b885db.zip newlib-b7c201d5883435e51e30921eaa07bfd091b885db.tar.gz newlib-b7c201d5883435e51e30921eaa07bfd091b885db.tar.bz2 |
* include/wctype.h: Add comment on wctrans, towctrans, wctype.
Diffstat (limited to 'winsup/mingw')
-rw-r--r-- | winsup/mingw/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/mingw/include/wctype.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 8948eeb..1cfab64 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,5 +1,9 @@ 2005-02-25 Danny Smith <dannysmith@users.sourceforge.net> + * include/wctype.h: Add comment on wctrans, towctrans, wctype. + +2005-02-25 Danny Smith <dannysmith@users.sourceforge.net> + * mingwex/wctype.c: New file. * mingwex/wctrans.c: New file. * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c. diff --git a/winsup/mingw/include/wctype.h b/winsup/mingw/include/wctype.h index 7b2d20a..07c433e 100644 --- a/winsup/mingw/include/wctype.h +++ b/winsup/mingw/include/wctype.h @@ -128,6 +128,14 @@ __CRT_INLINE int __cdecl isleadbyte(int c) {return (_pctype[(unsigned char)(c)] typedef wchar_t wctrans_t; + +/* These are resolved by libmingwex.a. Note, that they are also exported + by the MS C++ runtime lib (msvcp60.dll). The msvcp60.dll implementations + of wctrans and towctrans are not C99 compliant in that wctrans("tolower") + returns 0, while std specifies that a non-zero value should be returned + for a valid string descriptor. If you want the MS behaviour (and you have + msvcp60.dll in your path) add -lmsvcp60 to your command line. */ + _CRTIMP wint_t __cdecl towctrans(wint_t, wctrans_t); _CRTIMP wctrans_t __cdecl wctrans(const char*); _CRTIMP wctype_t __cdecl wctype(const char*); |