diff options
author | no-author <no-author@gcc.gnu.org> | 2001-06-17 19:44:25 +0000 |
---|---|---|
committer | no-author <no-author@gcc.gnu.org> | 2001-06-17 19:44:25 +0000 |
commit | 5fbf0b0d5828687914c1c18a83ff12c8627d5a70 (patch) | |
tree | 0462411cdf0cad3bda574da8e490935f1995f8d6 /gcc/fixinc/fixtests.c | |
parent | a77e41f20ecff0f4731ab8d43e54629b25d29e50 (diff) |
This commit was manufactured by cvs2svn to create taggcc_3_0_release
'gcc_3_0_release'.
git-svn-id: https://gcc.gnu.org/svn/gcc/tags/gcc_3_0_release@43431 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/fixtests.c')
-rw-r--r-- | gcc/fixinc/fixtests.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gcc/fixinc/fixtests.c b/gcc/fixinc/fixtests.c index e3da35b8c36..40687cfc755 100644 --- a/gcc/fixinc/fixtests.c +++ b/gcc/fixinc/fixtests.c @@ -47,6 +47,10 @@ Boston, MA 02111-1307, USA. */ #include "fixlib.h" +#define _ENV_(v,m,n,t) extern tCC* v; +ENV_TABLE +#undef _ENV_ + typedef apply_fix_p_t t_test_proc PARAMS(( tCC* file, tCC* text )); typedef struct { @@ -55,7 +59,8 @@ typedef struct { } test_entry_t; #define FIX_TEST_TABLE \ - _FT_( "machine_name", machine_name_test ) + _FT_( "machine_name", machine_name_test ) \ + _FT_( "stdc_0_in_system_headers", stdc_0_in_system_headers_test ) #define TEST_FOR_FIX_PROC_HEAD( test ) \ static apply_fix_p_t test PARAMS(( tCC* file, tCC* text )); \ @@ -116,6 +121,16 @@ TEST_FOR_FIX_PROC_HEAD( machine_name_test ) } +TEST_FOR_FIX_PROC_HEAD( stdc_0_in_system_headers_test ) +{ +#ifdef STDC_0_IN_SYSTEM_HEADERS + return (pz_machine == NULL) ? APPLY_FIX : SKIP_FIX; +#else + return APPLY_FIX; +#endif +} + + /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = test for fix selector |