This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[v3] remove include_next



I'm taking out the include_next bits from the c_std headers. The use
of include_next in this context is clearly wrong, and it doesn't
really cause a problem with either the trunk or branch sources, so
I'll apply it to both.

-benjamin

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

	* include/c_std/bits/std_c*.h: Don't use include_next.

Index: include/c_std/bits/std_cassert.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cassert.h,v
retrieving revision 1.6
diff -c -p -r1.6 std_cassert.h
*** std_cassert.h	2001/06/08 23:22:25	1.6
--- std_cassert.h	2001/09/04 21:33:40
***************
*** 34,40 ****
  // No include guards on this header...
  
  #pragma GCC system_header
! #include_next <assert.h>
  
  
  
--- 34,40 ----
  // No include guards on this header...
  
  #pragma GCC system_header
! #include <assert.h>
  
  
  
Index: include/c_std/bits/std_cctype.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cctype.h,v
retrieving revision 1.7
diff -c -p -r1.7 std_cctype.h
*** std_cctype.h	2001/06/09 17:39:29	1.7
--- std_cctype.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CCTYPE 1
  
  #pragma GCC system_header
! #include_next <ctype.h>
  
  // Get rid of those macros defined in <ctype.h> in lieu of real functions.
  #undef isalnum
--- 35,41 ----
  #define _CPP_CCTYPE 1
  
  #pragma GCC system_header
! #include <ctype.h>
  
  // Get rid of those macros defined in <ctype.h> in lieu of real functions.
  #undef isalnum
Index: include/c_std/bits/std_cerrno.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cerrno.h,v
retrieving revision 1.8
diff -c -p -r1.8 std_cerrno.h
*** std_cerrno.h	2001/06/08 23:22:25	1.8
--- std_cerrno.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CERRNO 1
  
  #pragma GCC system_header
! #include_next <errno.h>
  
  // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
  #ifndef errno
--- 35,41 ----
  #define _CPP_CERRNO 1
  
  #pragma GCC system_header
! #include <errno.h>
  
  // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
  #ifndef errno
Index: include/c_std/bits/std_cfloat.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cfloat.h,v
retrieving revision 1.5
diff -c -p -r1.5 std_cfloat.h
*** std_cfloat.h	2001/06/08 23:22:25	1.5
--- std_cfloat.h	2001/09/04 21:33:40
***************
*** 35,40 ****
  #define _CPP_CFLOAT 1
  
  #pragma GCC system_header
! #include_next <float.h>
  
  #endif
--- 35,40 ----
  #define _CPP_CFLOAT 1
  
  #pragma GCC system_header
! #include <float.h>
  
  #endif
Index: include/c_std/bits/std_climits.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_climits.h,v
retrieving revision 1.6
diff -c -p -r1.6 std_climits.h
*** std_climits.h	2001/06/08 23:22:25	1.6
--- std_climits.h	2001/09/04 21:33:40
***************
*** 35,40 ****
  #define _CPP_CLIMITS	1
  
  #pragma GCC system_header
! #include_next <limits.h>
  
  #endif
--- 35,40 ----
  #define _CPP_CLIMITS	1
  
  #pragma GCC system_header
! #include <limits.h>
  
  #endif
Index: include/c_std/bits/std_clocale.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_clocale.h,v
retrieving revision 1.7
diff -c -p -r1.7 std_clocale.h
*** std_clocale.h	2001/06/09 06:49:13	1.7
--- std_clocale.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CLOCALE 1
  
  #pragma GCC system_header
! #include_next <locale.h>
  
  // Get rid of those macros defined in <locale.h> in lieu of real functions.
  #undef setlocale
--- 35,41 ----
  #define _CPP_CLOCALE 1
  
  #pragma GCC system_header
! #include <locale.h>
  
  // Get rid of those macros defined in <locale.h> in lieu of real functions.
  #undef setlocale
Index: include/c_std/bits/std_cmath.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cmath.h,v
retrieving revision 1.15
diff -c -p -r1.15 std_cmath.h
*** std_cmath.h	2001/06/10 23:26:34	1.15
--- std_cmath.h	2001/09/04 21:33:40
***************
*** 37,43 ****
  #include <bits/c++config.h>
  
  #pragma GCC system_header
! #include_next <math.h>
  
  // Get rid of those macros defined in <math.h> in lieu of real functions.
  #undef abs
--- 37,43 ----
  #include <bits/c++config.h>
  
  #pragma GCC system_header
! #include <math.h>
  
  // Get rid of those macros defined in <math.h> in lieu of real functions.
  #undef abs
Index: include/c_std/bits/std_csetjmp.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_csetjmp.h,v
retrieving revision 1.7
diff -c -p -r1.7 std_csetjmp.h
*** std_csetjmp.h	2001/06/08 23:22:25	1.7
--- std_csetjmp.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CSETJMP 1
  
  #pragma GCC system_header
! #include_next <setjmp.h>
  
  // Get rid of those macros defined in <setjmp.h> in lieu of real functions.
  #undef longjmp
--- 35,41 ----
  #define _CPP_CSETJMP 1
  
  #pragma GCC system_header
! #include <setjmp.h>
  
  // Get rid of those macros defined in <setjmp.h> in lieu of real functions.
  #undef longjmp
Index: include/c_std/bits/std_csignal.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_csignal.h,v
retrieving revision 1.5
diff -c -p -r1.5 std_csignal.h
*** std_csignal.h	2001/06/08 23:22:26	1.5
--- std_csignal.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CSIGNAL 1
  
  #pragma GCC system_header
! #include_next <signal.h>
  
  // Get rid of those macros defined in <signal.h> in lieu of real functions.
  #undef raise
--- 35,41 ----
  #define _CPP_CSIGNAL 1
  
  #pragma GCC system_header
! #include <signal.h>
  
  // Get rid of those macros defined in <signal.h> in lieu of real functions.
  #undef raise
Index: include/c_std/bits/std_cstdarg.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cstdarg.h,v
retrieving revision 1.6
diff -c -p -r1.6 std_cstdarg.h
*** std_cstdarg.h	2001/06/08 23:22:26	1.6
--- std_cstdarg.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CSTDARG 1
  
  #pragma GCC system_header
! #include_next <stdarg.h>
  
  // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
  #ifndef va_end
--- 35,41 ----
  #define _CPP_CSTDARG 1
  
  #pragma GCC system_header
! #include <stdarg.h>
  
  // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
  #ifndef va_end
Index: include/c_std/bits/std_cstddef.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cstddef.h,v
retrieving revision 1.7
diff -c -p -r1.7 std_cstddef.h
*** std_cstddef.h	2001/06/08 23:22:26	1.7
--- std_cstddef.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CSTDDEF 1
  
  #pragma GCC system_header
! #include_next <stddef.h>
  
  namespace std 
  {
--- 35,41 ----
  #define _CPP_CSTDDEF 1
  
  #pragma GCC system_header
! #include <stddef.h>
  
  namespace std 
  {
Index: include/c_std/bits/std_cstdio.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cstdio.h,v
retrieving revision 1.13
diff -c -p -r1.13 std_cstdio.h
*** std_cstdio.h	2001/06/10 23:26:34	1.13
--- std_cstdio.h	2001/09/04 21:33:40
***************
*** 38,44 ****
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include_next <stdio.h>
  
  // Get rid of those macros defined in <stdio.h> in lieu of real functions.
  #undef clearerr
--- 38,44 ----
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include <stdio.h>
  
  // Get rid of those macros defined in <stdio.h> in lieu of real functions.
  #undef clearerr
Index: include/c_std/bits/std_cstdlib.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cstdlib.h,v
retrieving revision 1.16
diff -c -p -r1.16 std_cstdlib.h
*** std_cstdlib.h	2001/06/10 23:26:34	1.16
--- std_cstdlib.h	2001/09/04 21:33:40
***************
*** 38,44 ****
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include_next <stdlib.h>
  
  // Get rid of those macros defined in <stdlib.h> in lieu of real functions.
  #undef abort
--- 38,44 ----
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include <stdlib.h>
  
  // Get rid of those macros defined in <stdlib.h> in lieu of real functions.
  #undef abort
Index: include/c_std/bits/std_cstring.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cstring.h,v
retrieving revision 1.11
diff -c -p -r1.11 std_cstring.h
*** std_cstring.h	2001/06/09 18:53:35	1.11
--- std_cstring.h	2001/09/04 21:33:40
***************
*** 37,43 ****
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include_next <string.h>
  
  // Get rid of those macros defined in <string.h> in lieu of real functions.
  #undef memcpy
--- 37,43 ----
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include <string.h>
  
  // Get rid of those macros defined in <string.h> in lieu of real functions.
  #undef memcpy
Index: include/c_std/bits/std_ctime.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_ctime.h,v
retrieving revision 1.8
diff -c -p -r1.8 std_ctime.h
*** std_ctime.h	2001/06/09 18:53:35	1.8
--- std_ctime.h	2001/09/04 21:33:40
***************
*** 37,43 ****
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include_next <time.h>
  
  // Get rid of those macros defined in <time.h> in lieu of real functions.
  #undef clock
--- 37,43 ----
  #include <bits/std_cstddef.h>
  
  #pragma GCC system_header
! #include <time.h>
  
  // Get rid of those macros defined in <time.h> in lieu of real functions.
  #undef clock
Index: include/c_std/bits/std_cwchar.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cwchar.h,v
retrieving revision 1.17
diff -c -p -r1.17 std_cwchar.h
*** std_cwchar.h	2001/06/20 03:05:28	1.17
--- std_cwchar.h	2001/09/04 21:33:40
***************
*** 40,46 ****
  
  #if _GLIBCPP_HAVE_WCHAR_H
  #pragma GCC system_header
! #include_next <wchar.h>
  #endif
  
  // Need to do a bit of trickery here with mbstate_t as char_traits
--- 40,46 ----
  
  #if _GLIBCPP_HAVE_WCHAR_H
  #pragma GCC system_header
! #include <wchar.h>
  #endif
  
  // Need to do a bit of trickery here with mbstate_t as char_traits
Index: include/c_std/bits/std_cwctype.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c_std/bits/std_cwctype.h,v
retrieving revision 1.6
diff -c -p -r1.6 std_cwctype.h
*** std_cwctype.h	2001/06/20 03:05:28	1.6
--- std_cwctype.h	2001/09/04 21:33:40
***************
*** 35,41 ****
  #define _CPP_CWCTYPE 1
  
  #pragma GCC system_header
! #include_next <wctype.h>
  
  // Get rid of those macros defined in <wctype.h> in lieu of real functions.
  #undef iswalnum
--- 35,41 ----
  #define _CPP_CWCTYPE 1
  
  #pragma GCC system_header
! #include <wctype.h>
  
  // Get rid of those macros defined in <wctype.h> in lieu of real functions.
  #undef iswalnum


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]