Commit df7b1359 by Benjamin Kosnik Committed by Benjamin Kosnik

acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for fgetwc, fgetws.


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

	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for fgetwc,
	fgetws.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/c_std/bits/std_cwchar.h: Remove duplicate fgetwc
	injection, guard fgetwc, fgetws.
	* include/c_std/bits/std_cstdio.h: Remove superfluous includes.
	* include/c_std/bits/std_clocale.h: And here.
	* include/c_std/bits/std_cctype.h: And here.
	* include/c_std/bits/std_cstdlib.h (strtof): Guard strtof injection.

	* config/basic_file_stdio.h: Don't include unistd.h.
	* config/c_io_stdio.h: Don't use compatibility headers.
	* libsupc++/eh_terminate.cc: Qualify abort.
	(__terminate): And here.
	* libsupc++/eh_catch.cc (__cxa_end_catch): Qualify abort.

From-SVN: r43070
parent 7ae4a70a
2001-06-09 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for fgetwc,
fgetws.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c_std/bits/std_cwchar.h: Remove duplicate fgetwc
injection, guard fgetwc, fgetws.
* include/c_std/bits/std_cstdio.h: Remove superfluous includes.
* include/c_std/bits/std_clocale.h: And here.
* include/c_std/bits/std_cctype.h: And here.
* include/c_std/bits/std_cstdlib.h (strtof): Guard strtof injection.
* config/basic_file_stdio.h: Don't include unistd.h.
* config/c_io_stdio.h: Don't use compatibility headers.
* libsupc++/eh_terminate.cc: Qualify abort.
(__terminate): And here.
* libsupc++/eh_catch.cc (__cxa_end_catch): Qualify abort.
2001-06-08 Benjamin Kosnik <bkoz@redhat.com> 2001-06-08 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections. * include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections.
......
...@@ -813,6 +813,9 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [ ...@@ -813,6 +813,9 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \ AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no) wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no)
dnl Do quick checks for things injected into std:: by the c_std headers.
AC_CHECK_FUNCS(fgetwc, fgetws)
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 \
&& test x"$ac_wfuncs" = xyes; then && test x"$ac_wfuncs" = xyes; then
......
...@@ -825,6 +825,9 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [ ...@@ -825,6 +825,9 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \ AC_CHECK_FUNCS(wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no) wcsrtombs mbsrtowcs, ac_wfuncs=yes, ac_wfuncs=no)
dnl Do quick checks for things injected into std:: by the c_std headers.
AC_CHECK_FUNCS(fgetwc, fgetws)
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 \
&& test x"$ac_wfuncs" = xyes; then && test x"$ac_wfuncs" = xyes; then
......
...@@ -315,6 +315,9 @@ ...@@ -315,6 +315,9 @@
/* Define if you have the fabsl function. */ /* Define if you have the fabsl function. */
#undef HAVE_FABSL #undef HAVE_FABSL
/* Define if you have the fgetwc function. */
#undef HAVE_FGETWC
/* Define if you have the finite function. */ /* Define if you have the finite function. */
#undef HAVE_FINITE #undef HAVE_FINITE
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
// ISO C++ 14882: 27.8 File-based streams // ISO C++ 14882: 27.8 File-based streams
// //
#include <unistd.h>
namespace std namespace std
{ {
// Generic definitions for __basic_file // Generic definitions for __basic_file
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
#ifndef _CPP_IO_STDIO_H #ifndef _CPP_IO_STDIO_H
#define _CPP_IO_STDIO_H 1 #define _CPP_IO_STDIO_H 1
#include <stdio.h> #include <cstdio>
#include <stddef.h> #include <cstddef>
#include <bits/gthr.h> #include <bits/gthr.h>
namespace std namespace std
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#ifndef _CPP_CCTYPE #ifndef _CPP_CCTYPE
#define _CPP_CCTYPE 1 #define _CPP_CCTYPE 1
#include <bits/c++config.h>
#pragma GCC system_header #pragma GCC system_header
#include_next <ctype.h> #include_next <ctype.h>
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#ifndef _CPP_CLOCALE #ifndef _CPP_CLOCALE
#define _CPP_CLOCALE 1 #define _CPP_CLOCALE 1
#include <bits/c++config.h>
#pragma GCC system_header #pragma GCC system_header
#include_next <locale.h> #include_next <locale.h>
......
...@@ -34,10 +34,6 @@ ...@@ -34,10 +34,6 @@
#ifndef _CPP_CSTDIO #ifndef _CPP_CSTDIO
#define _CPP_CSTDIO 1 #define _CPP_CSTDIO 1
#include <bits/c++config.h>
#include <bits/std_cstdarg.h>
#include <bits/std_cstddef.h>
#pragma GCC system_header #pragma GCC system_header
#include_next <stdio.h> #include_next <stdio.h>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#undef atoi #undef atoi
#undef atol #undef atol
#undef strtod #undef strtod
//#undef strtof #undef strtof
#undef strtol #undef strtol
#undef strtoul #undef strtoul
#undef rand #undef rand
...@@ -88,7 +88,9 @@ namespace std ...@@ -88,7 +88,9 @@ namespace std
using ::atoi; using ::atoi;
using ::atol; using ::atol;
using ::strtod; using ::strtod;
// using ::strtof; #if _GLIBCPP_HAVE_STRTOF
using ::strtof;
#endif
using ::strtol; using ::strtol;
using ::strtoul; using ::strtoul;
using ::rand; using ::rand;
......
...@@ -127,9 +127,12 @@ namespace std ...@@ -127,9 +127,12 @@ namespace std
using ::btowc; using ::btowc;
using ::wctob; using ::wctob;
#if _GLIBCPP_HAVE_FGETWC
using ::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;
......
...@@ -89,7 +89,7 @@ __cxa_end_catch () ...@@ -89,7 +89,7 @@ __cxa_end_catch ()
} }
else if (count < 0) else if (count < 0)
// A bug in the exception handling library or compiler. // A bug in the exception handling library or compiler.
abort (); std::abort ();
header->handlerCount = count; header->handlerCount = count;
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
using namespace __cxxabiv1; using namespace __cxxabiv1;
/* The current installed user handlers. */ /* The current installed user handlers. */
std::terminate_handler __cxxabiv1::__terminate_handler = abort; std::terminate_handler __cxxabiv1::__terminate_handler = std::abort;
std::unexpected_handler __cxxabiv1::__unexpected_handler = std::terminate; std::unexpected_handler __cxxabiv1::__unexpected_handler = std::terminate;
void void
...@@ -45,9 +45,9 @@ __cxxabiv1::__terminate (std::terminate_handler handler) ...@@ -45,9 +45,9 @@ __cxxabiv1::__terminate (std::terminate_handler handler)
{ {
try { try {
handler (); handler ();
abort (); std::abort ();
} catch (...) { } catch (...) {
abort (); std::abort ();
} }
} }
......
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