Commit 68fe6226 by Benjamin Kosnik Committed by Benjamin Kosnik

std_cwchar.h: Alphabetize.


2001-06-10  Benjamin Kosnik  <bkoz@redhat.com>

	* include/c_std/bits/std_cwchar.h: Alphabetize.
	* include/bits/char_traits.h: Tweak.
	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for
	everything used by std_cwchar.h.
	* aclocal.m4: Regenerate.
	* configure.in: Regenerate.
	* config.h.in: Regenerate.

From-SVN: r43167
parent ad5ef673
2001-06-10 Benjamin Kosnik <bkoz@redhat.com> 2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwchar.h: Alphabetize.
* include/bits/char_traits.h: Tweak.
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for
everything used by std_cwchar.h.
* aclocal.m4: Regenerate.
* configure.in: Regenerate.
* config.h.in: Regenerate.
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking. * acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking.
Add checking for strtof, _Exit in stdlib.h Add checking for strtof, _Exit in stdlib.h
* aclocal.m4: Regenerate. * aclocal.m4: Regenerate.
......
...@@ -813,11 +813,18 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [ ...@@ -813,11 +813,18 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
AC_MSG_RESULT($has_weof) AC_MSG_RESULT($has_weof)
dnl Tests for wide character functions used in char_traits<wchar_t>. dnl Tests for wide character functions used in char_traits<wchar_t>.
AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \ ac_wfuncs=yes
wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no) AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset,, \
ac_wfuncs=no)
dnl Do quick checks for things injected into std:: by the c_std headers.
AC_CHECK_FUNCS(fgetwc, fgetws) dnl Checks for names injected into std:: by the c_std headers.
AC_CHECK_FUNCS(btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr,, \
ac_wfuncs=no)
AC_MSG_CHECKING([for ISO C99 wchar_t support]) AC_MSG_CHECKING([for ISO C99 wchar_t support])
if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \ if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
...@@ -1327,8 +1334,9 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl ...@@ -1327,8 +1334,9 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
AC_MSG_RESULT($ac_c99_stdlib) AC_MSG_RESULT($ac_c99_stdlib)
# Check for the existence of <wchar.h> functions used if C99 is enabled. # Check for the existence of <wchar.h> functions used if C99 is enabled.
# XXX the wchar.h checks should be rolled into the general C99 bits.
ac_c99_wchar=yes; ac_c99_wchar=yes;
AC_MSG_CHECKING([for ISO C99 support in <wchar.h>]) AC_MSG_CHECKING([for additional ISO C99 support in <wchar.h>])
AC_TRY_COMPILE([#include <wchar.h>], AC_TRY_COMPILE([#include <wchar.h>],
[wcstold(L"10.0", NULL);],, [ac_c99_wchar=no]) [wcstold(L"10.0", NULL);],, [ac_c99_wchar=no])
AC_TRY_COMPILE([#include <wchar.h>], AC_TRY_COMPILE([#include <wchar.h>],
......
...@@ -825,11 +825,18 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [ ...@@ -825,11 +825,18 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
AC_MSG_RESULT($has_weof) AC_MSG_RESULT($has_weof)
dnl Tests for wide character functions used in char_traits<wchar_t>. dnl Tests for wide character functions used in char_traits<wchar_t>.
AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \ ac_wfuncs=yes
wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no) AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset,, \
ac_wfuncs=no)
dnl Do quick checks for things injected into std:: by the c_std headers.
AC_CHECK_FUNCS(fgetwc, fgetws) dnl Checks for names injected into std:: by the c_std headers.
AC_CHECK_FUNCS(btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr,, \
ac_wfuncs=no)
AC_MSG_CHECKING([for ISO C99 wchar_t support]) AC_MSG_CHECKING([for ISO C99 wchar_t support])
if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \ if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
...@@ -1339,8 +1346,9 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl ...@@ -1339,8 +1346,9 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
AC_MSG_RESULT($ac_c99_stdlib) AC_MSG_RESULT($ac_c99_stdlib)
# Check for the existence of <wchar.h> functions used if C99 is enabled. # Check for the existence of <wchar.h> functions used if C99 is enabled.
# XXX the wchar.h checks should be rolled into the general C99 bits.
ac_c99_wchar=yes; ac_c99_wchar=yes;
AC_MSG_CHECKING([for ISO C99 support in <wchar.h>]) AC_MSG_CHECKING([for additional ISO C99 support in <wchar.h>])
AC_TRY_COMPILE([#include <wchar.h>], AC_TRY_COMPILE([#include <wchar.h>],
[wcstold(L"10.0", NULL);],, [ac_c99_wchar=no]) [wcstold(L"10.0", NULL);],, [ac_c99_wchar=no])
AC_TRY_COMPILE([#include <wchar.h>], AC_TRY_COMPILE([#include <wchar.h>],
......
...@@ -273,6 +273,9 @@ ...@@ -273,6 +273,9 @@
/* Define if you have the atanl function. */ /* Define if you have the atanl function. */
#undef HAVE_ATANL #undef HAVE_ATANL
/* Define if you have the btowc function. */
#undef HAVE_BTOWC
/* Define if you have the ceilf function. */ /* Define if you have the ceilf function. */
#undef HAVE_CEILF #undef HAVE_CEILF
...@@ -318,6 +321,9 @@ ...@@ -318,6 +321,9 @@
/* Define if you have the fgetwc function. */ /* Define if you have the fgetwc function. */
#undef HAVE_FGETWC #undef HAVE_FGETWC
/* Define if you have the fgetws function. */
#undef HAVE_FGETWS
/* Define if you have the finite function. */ /* Define if you have the finite function. */
#undef HAVE_FINITE #undef HAVE_FINITE
...@@ -342,15 +348,36 @@ ...@@ -342,15 +348,36 @@
/* Define if you have the fpclass function. */ /* Define if you have the fpclass function. */
#undef HAVE_FPCLASS #undef HAVE_FPCLASS
/* Define if you have the fputwc function. */
#undef HAVE_FPUTWC
/* Define if you have the fputws function. */
#undef HAVE_FPUTWS
/* Define if you have the frexpf function. */ /* Define if you have the frexpf function. */
#undef HAVE_FREXPF #undef HAVE_FREXPF
/* Define if you have the frexpl function. */ /* Define if you have the frexpl function. */
#undef HAVE_FREXPL #undef HAVE_FREXPL
/* Define if you have the fwide function. */
#undef HAVE_FWIDE
/* Define if you have the fwprintf function. */
#undef HAVE_FWPRINTF
/* Define if you have the fwscanf function. */
#undef HAVE_FWSCANF
/* Define if you have the getpagesize function. */ /* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE #undef HAVE_GETPAGESIZE
/* Define if you have the getwc function. */
#undef HAVE_GETWC
/* Define if you have the getwchar function. */
#undef HAVE_GETWCHAR
/* Define if you have the hypot function. */ /* Define if you have the hypot function. */
#undef HAVE_HYPOT #undef HAVE_HYPOT
...@@ -405,6 +432,15 @@ ...@@ -405,6 +432,15 @@
/* Define if you have the logl function. */ /* Define if you have the logl function. */
#undef HAVE_LOGL #undef HAVE_LOGL
/* Define if you have the mbrlen function. */
#undef HAVE_MBRLEN
/* Define if you have the mbrtowc function. */
#undef HAVE_MBRTOWC
/* Define if you have the mbsinit function. */
#undef HAVE_MBSINIT
/* Define if you have the mbsrtowcs function. */ /* Define if you have the mbsrtowcs function. */
#undef HAVE_MBSRTOWCS #undef HAVE_MBSRTOWCS
...@@ -426,6 +462,12 @@ ...@@ -426,6 +462,12 @@
/* Define if you have the powl function. */ /* Define if you have the powl function. */
#undef HAVE_POWL #undef HAVE_POWL
/* Define if you have the putwc function. */
#undef HAVE_PUTWC
/* Define if you have the putwchar function. */
#undef HAVE_PUTWCHAR
/* Define if you have the qfpclass function. */ /* Define if you have the qfpclass function. */
#undef HAVE_QFPCLASS #undef HAVE_QFPCLASS
...@@ -462,6 +504,12 @@ ...@@ -462,6 +504,12 @@
/* Define if you have the strtold function. */ /* Define if you have the strtold function. */
#undef HAVE_STRTOLD #undef HAVE_STRTOLD
/* Define if you have the swprintf function. */
#undef HAVE_SWPRINTF
/* Define if you have the swscanf function. */
#undef HAVE_SWSCANF
/* Define if you have the tanf function. */ /* Define if you have the tanf function. */
#undef HAVE_TANF #undef HAVE_TANF
...@@ -474,12 +522,99 @@ ...@@ -474,12 +522,99 @@
/* Define if you have the tanl function. */ /* Define if you have the tanl function. */
#undef HAVE_TANL #undef HAVE_TANL
/* Define if you have the ungetwc function. */
#undef HAVE_UNGETWC
/* Define if you have the vfwprintf function. */
#undef HAVE_VFWPRINTF
/* Define if you have the vfwscanf function. */
#undef HAVE_VFWSCANF
/* Define if you have the vswprintf function. */
#undef HAVE_VSWPRINTF
/* Define if you have the vswscanf function. */
#undef HAVE_VSWSCANF
/* Define if you have the vwprintf function. */
#undef HAVE_VWPRINTF
/* Define if you have the vwscanf function. */
#undef HAVE_VWSCANF
/* Define if you have the wcrtomb function. */
#undef HAVE_WCRTOMB
/* Define if you have the wcscat function. */
#undef HAVE_WCSCAT
/* Define if you have the wcschr function. */
#undef HAVE_WCSCHR
/* Define if you have the wcscmp function. */
#undef HAVE_WCSCMP
/* Define if you have the wcscoll function. */
#undef HAVE_WCSCOLL
/* Define if you have the wcscpy function. */
#undef HAVE_WCSCPY
/* Define if you have the wcscspn function. */
#undef HAVE_WCSCSPN
/* Define if you have the wcsftime function. */
#undef HAVE_WCSFTIME
/* Define if you have the wcslen function. */ /* Define if you have the wcslen function. */
#undef HAVE_WCSLEN #undef HAVE_WCSLEN
/* Define if you have the wcsncat function. */
#undef HAVE_WCSNCAT
/* Define if you have the wcsncmp function. */
#undef HAVE_WCSNCMP
/* Define if you have the wcsncpy function. */
#undef HAVE_WCSNCPY
/* Define if you have the wcspbrk function. */
#undef HAVE_WCSPBRK
/* Define if you have the wcsrchr function. */
#undef HAVE_WCSRCHR
/* Define if you have the wcsrtombs function. */ /* Define if you have the wcsrtombs function. */
#undef HAVE_WCSRTOMBS #undef HAVE_WCSRTOMBS
/* Define if you have the wcsspn function. */
#undef HAVE_WCSSPN
/* Define if you have the wcsstr function. */
#undef HAVE_WCSSTR
/* Define if you have the wcstod function. */
#undef HAVE_WCSTOD
/* Define if you have the wcstof function. */
#undef HAVE_WCSTOF
/* Define if you have the wcstok function. */
#undef HAVE_WCSTOK
/* Define if you have the wcstol function. */
#undef HAVE_WCSTOL
/* Define if you have the wcstoul function. */
#undef HAVE_WCSTOUL
/* Define if you have the wcsxfrm function. */
#undef HAVE_WCSXFRM
/* Define if you have the wctob function. */
#undef HAVE_WCTOB
/* Define if you have the wmemchr function. */ /* Define if you have the wmemchr function. */
#undef HAVE_WMEMCHR #undef HAVE_WMEMCHR
...@@ -495,6 +630,12 @@ ...@@ -495,6 +630,12 @@
/* Define if you have the wmemset function. */ /* Define if you have the wmemset function. */
#undef HAVE_WMEMSET #undef HAVE_WMEMSET
/* Define if you have the wprintf function. */
#undef HAVE_WPRINTF
/* Define if you have the wscanf function. */
#undef HAVE_WSCANF
/* Define if you have the <endian.h> header file. */ /* Define if you have the <endian.h> header file. */
#undef HAVE_ENDIAN_H #undef HAVE_ENDIAN_H
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -270,7 +270,6 @@ namespace std ...@@ -270,7 +270,6 @@ namespace std
bool bool
operator()(_CharT const& __a) { return _Traits::eq(_M_c, __a); } operator()(_CharT const& __a) { return _Traits::eq(_M_c, __a); }
}; };
} // namespace std } // namespace std
#endif #endif
...@@ -61,8 +61,6 @@ namespace std ...@@ -61,8 +61,6 @@ namespace std
// Get rid of those macros defined in <wchar.h> in lieu of real functions. // Get rid of those macros defined in <wchar.h> in lieu of real functions.
#undef btowc #undef btowc
#undef wctob
#undef fgetwc
#undef fgetwc #undef fgetwc
#undef fgetws #undef fgetws
#undef fputwc #undef fputwc
...@@ -70,53 +68,54 @@ namespace std ...@@ -70,53 +68,54 @@ namespace std
#undef fwide #undef fwide
#undef fwprintf #undef fwprintf
#undef fwscanf #undef fwscanf
#undef swprintf
#undef swscanf
#undef vfwprintf
#undef vfwscanf
#undef vswprintf
#undef vswscanf
#undef vwprintf
#undef vwscanf
#undef wprintf
#undef wscanf
#undef getwc #undef getwc
#undef getwchar #undef getwchar
#undef mbsinit
#undef mbrlen #undef mbrlen
#undef mbrtowc #undef mbrtowc
#undef mbsinit
#undef mbsrtowcs #undef mbsrtowcs
#undef wcsrtombs
#undef putwc #undef putwc
#undef putwchar #undef putwchar
#undef swprintf
#undef swscanf
#undef ungetwc #undef ungetwc
#undef vfwprintf
#undef vfwscanf
#undef vswprintf
#undef vswscanf
#undef vwprintf
#undef vwscanf
#undef wcrtomb #undef wcrtomb
#undef wcstod
#undef wcstof
#undef wcstol
#undef wcstoul
#undef wcscpy
#undef wcsncpy
#undef wcscat #undef wcscat
#undef wcsncat #undef wcschr
#undef wcscmp #undef wcscmp
#undef wcscoll #undef wcscoll
#undef wcsncmp #undef wcscpy
#undef wcsxfrm
#undef wcscspn #undef wcscspn
#undef wcsftime
#undef wcslen #undef wcslen
#undef wcsncat
#undef wcsncmp
#undef wcsncpy
#undef wcspbrk
#undef wcsrchr
#undef wcsrtombs
#undef wcsspn #undef wcsspn
#undef wcsstr
#undef wcstod
#undef wcstof
#undef wcstok #undef wcstok
#undef wcstol
#undef wcstoul
#undef wcsxfrm
#undef wctob
#undef wmemchr
#undef wmemcmp #undef wmemcmp
#undef wmemcpy #undef wmemcpy
#undef wmemmove #undef wmemmove
#undef wmemset #undef wmemset
#undef wcsftime #undef wprintf
#undef wcschr #undef wscanf
#undef wcspbrk
#undef wcsrchr
#undef wcsstr
#undef wmemchr
#if _GLIBCPP_USE_WCHAR_T #if _GLIBCPP_USE_WCHAR_T
namespace std namespace std
...@@ -124,60 +123,56 @@ namespace std ...@@ -124,60 +123,56 @@ namespace std
using ::wint_t; using ::wint_t;
using ::btowc; using ::btowc;
using ::wctob;
#if _GLIBCPP_HAVE_FGETWC
using ::fgetwc; using ::fgetwc;
#endif
#if _GLIBCPP_HAVE_FGETWS
using ::fgetws; using ::fgetws;
#endif
using ::fputwc; using ::fputwc;
using ::fputws; using ::fputws;
using ::fwide; using ::fwide;
using ::fwprintf; using ::fwprintf;
using ::fwscanf; using ::fwscanf;
using ::swprintf;
using ::swscanf;
using ::vfwprintf;
using ::vfwscanf;
using ::vswprintf;
using ::vswscanf;
using ::vwprintf;
using ::vwscanf;
using ::wprintf;
using ::wscanf;
using ::getwc; using ::getwc;
using ::getwchar; using ::getwchar;
using ::mbsinit;
using ::mbrlen; using ::mbrlen;
using ::mbrtowc; using ::mbrtowc;
using ::mbsinit;
using ::mbsrtowcs; using ::mbsrtowcs;
using ::wcsrtombs;
using ::putwc; using ::putwc;
using ::putwchar; using ::putwchar;
using ::swprintf;
using ::swscanf;
using ::ungetwc; using ::ungetwc;
using ::vfwprintf;
using ::vfwscanf;
using ::vswprintf;
using ::vswscanf;
using ::vwprintf;
using ::vwscanf;
using ::wcrtomb; using ::wcrtomb;
using ::wcstod;
using ::wcstof;
using ::wcstol;
using ::wcstoul;
using ::wcscpy;
using ::wcsncpy;
using ::wcscat; using ::wcscat;
using ::wcsncat;
using ::wcscmp; using ::wcscmp;
using ::wcscoll; using ::wcscoll;
using ::wcsncmp; using ::wcscpy;
using ::wcsxfrm;
using ::wcscspn; using ::wcscspn;
using ::wcsftime;
using ::wcslen; using ::wcslen;
using ::wcsncat;
using ::wcsncmp;
using ::wcsncpy;
using ::wcsrtombs;
using ::wcsspn; using ::wcsspn;
using ::wcstod;
using ::wcstof;
using ::wcstok; using ::wcstok;
using ::wcstol;
using ::wcstoul;
using ::wcsxfrm;
using ::wctob;
using ::wmemcmp; using ::wmemcmp;
using ::wmemcpy; using ::wmemcpy;
using ::wmemmove; using ::wmemmove;
using ::wmemset; using ::wmemset;
using ::wcsftime; using ::wprintf;
using ::wscanf;
using ::wcschr; using ::wcschr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment