diff options
author | Bruce Korb <bkorb@gnu.org> | 2000-09-12 14:28:55 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2000-09-12 14:28:55 +0000 |
commit | 3af556f74d0d938e1ad240fe44bedf47e97ce4f5 (patch) | |
tree | f13d965e3c5b9e45cd60009af6a3d7dd4b8c368f /gcc/fixinc/fixtests.c | |
parent | 32892c52e4674485c40311bd82d64f5adb025905 (diff) | |
download | gcc-3af556f74d0d938e1ad240fe44bedf47e97ce4f5.zip gcc-3af556f74d0d938e1ad240fe44bedf47e97ce4f5.tar.gz gcc-3af556f74d0d938e1ad240fe44bedf47e97ce4f5.tar.bz2 |
code cleanups
From-SVN: r36359
Diffstat (limited to 'gcc/fixinc/fixtests.c')
-rw-r--r-- | gcc/fixinc/fixtests.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/fixinc/fixtests.c b/gcc/fixinc/fixtests.c index 3b0c798..7a057f6 100644 --- a/gcc/fixinc/fixtests.c +++ b/gcc/fixinc/fixtests.c @@ -47,18 +47,20 @@ Boston, MA 02111-1307, USA. */ #include "fixlib.h" +typedef apply_fix_p_t t_test_proc PARAMS(( tCC* file, tCC* text )); + typedef struct { - tCC* test_name; - apply_fix_p_t (*test_proc)(); + tCC* test_name; + t_test_proc* test_proc; } test_entry_t; #define FIX_TEST_TABLE \ _FT_( "machine_name", machine_name_test ) - -#define TEST_FOR_FIX_PROC_HEAD( test ) \ -static apply_fix_p_t test ( fname, text ) \ - tCC* fname; \ +#define TEST_FOR_FIX_PROC_HEAD( test ) \ +t_test_proc test; /* avoid warning */ \ +static apply_fix_p_t test ( fname, text ) \ + tCC* fname; \ tCC* text; |