diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-22 12:55:44 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-22 12:55:44 +0000 |
commit | 428602c9907da466ef309835e867067d2f1a319d (patch) | |
tree | 1c82a24bbe08b8bf9653396b534b35d34b3a9e42 /gcc | |
parent | 6b1f09ffe893fff086d7722be6a763c770c6a402 (diff) | |
download | gcc-428602c9907da466ef309835e867067d2f1a319d.tar.gz |
* c-lang.c: Convert to ISO C90.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68326 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-lang.c | 31 |
2 files changed, 16 insertions, 19 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3df66fbbd96..e27c7db6d6c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-06-22 Andreas Jaeger <aj@suse.de> + + * c-lang.c: Convert to ISO C90. + 2003-06-22 Neil Booth <neil@daikokuya.co.uk> * opts.c (find_opt): Fix to always guarantee a find of a diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 92b9c6e4b28..1b4a4ea8861 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -1,6 +1,6 @@ /* Language-specific hook definitions for C front end. Copyright (C) 1991, 1995, 1997, 1998, - 1999, 2000, 2001 Free Software Foundation, Inc. + 1999, 2000, 2001, 2003 Free Software Foundation, Inc. This file is part of GCC. @@ -31,7 +31,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "langhooks.h" #include "langhooks-def.h" -static int c_init_options PARAMS ((void)); +static int c_init_options (void); /* ### When changing hooks, consider if ObjC needs changing too!! ### */ @@ -158,7 +158,7 @@ const char *const tree_code_name[] = { #undef DEFTREECODE static int -c_init_options () +c_init_options (void) { return c_common_init_options (clk_c); } @@ -166,43 +166,37 @@ c_init_options () /* Used by c-lex.c, but only for objc. */ tree -lookup_interface (arg) - tree arg ATTRIBUTE_UNUSED; +lookup_interface (tree arg ATTRIBUTE_UNUSED) { return 0; } tree -is_class_name (arg) - tree arg ATTRIBUTE_UNUSED; +is_class_name (tree arg ATTRIBUTE_UNUSED) { return 0; } tree -objc_is_id (arg) - tree arg ATTRIBUTE_UNUSED; +objc_is_id (tree arg ATTRIBUTE_UNUSED) { return 0; } void -objc_check_decl (decl) - tree decl ATTRIBUTE_UNUSED; +objc_check_decl (tree decl ATTRIBUTE_UNUSED) { } int -objc_comptypes (lhs, rhs, reflexive) - tree lhs ATTRIBUTE_UNUSED; - tree rhs ATTRIBUTE_UNUSED; - int reflexive ATTRIBUTE_UNUSED; +objc_comptypes (tree lhs ATTRIBUTE_UNUSED, tree rhs ATTRIBUTE_UNUSED, + int reflexive ATTRIBUTE_UNUSED) { return -1; } tree -objc_message_selector () +objc_message_selector (void) { return 0; } @@ -210,14 +204,13 @@ objc_message_selector () /* Used by c-typeck.c (build_external_ref), but only for objc. */ tree -lookup_objc_ivar (id) - tree id ATTRIBUTE_UNUSED; +lookup_objc_ivar (tree id ATTRIBUTE_UNUSED) { return 0; } void -finish_file () +finish_file (void) { c_objc_common_finish_file (); } |