* c-lang.c: Convert to ISO C90.

From-SVN: r68326
This commit is contained in:
Andreas Jaeger 2003-06-22 14:55:44 +02:00 committed by Andreas Jaeger
parent 9cd23ed2b4
commit 3346b668ca
2 changed files with 16 additions and 19 deletions

View file

@ -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> 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
* opts.c (find_opt): Fix to always guarantee a find of a * opts.c (find_opt): Fix to always guarantee a find of a

View file

@ -1,6 +1,6 @@
/* Language-specific hook definitions for C front end. /* Language-specific hook definitions for C front end.
Copyright (C) 1991, 1995, 1997, 1998, 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. This file is part of GCC.
@ -31,7 +31,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "langhooks.h" #include "langhooks.h"
#include "langhooks-def.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!! ### */ /* ### When changing hooks, consider if ObjC needs changing too!! ### */
@ -158,7 +158,7 @@ const char *const tree_code_name[] = {
#undef DEFTREECODE #undef DEFTREECODE
static int static int
c_init_options () c_init_options (void)
{ {
return c_common_init_options (clk_c); return c_common_init_options (clk_c);
} }
@ -166,43 +166,37 @@ c_init_options ()
/* Used by c-lex.c, but only for objc. */ /* Used by c-lex.c, but only for objc. */
tree tree
lookup_interface (arg) lookup_interface (tree arg ATTRIBUTE_UNUSED)
tree arg ATTRIBUTE_UNUSED;
{ {
return 0; return 0;
} }
tree tree
is_class_name (arg) is_class_name (tree arg ATTRIBUTE_UNUSED)
tree arg ATTRIBUTE_UNUSED;
{ {
return 0; return 0;
} }
tree tree
objc_is_id (arg) objc_is_id (tree arg ATTRIBUTE_UNUSED)
tree arg ATTRIBUTE_UNUSED;
{ {
return 0; return 0;
} }
void void
objc_check_decl (decl) objc_check_decl (tree decl ATTRIBUTE_UNUSED)
tree decl ATTRIBUTE_UNUSED;
{ {
} }
int int
objc_comptypes (lhs, rhs, reflexive) objc_comptypes (tree lhs ATTRIBUTE_UNUSED, tree rhs ATTRIBUTE_UNUSED,
tree lhs ATTRIBUTE_UNUSED; int reflexive ATTRIBUTE_UNUSED)
tree rhs ATTRIBUTE_UNUSED;
int reflexive ATTRIBUTE_UNUSED;
{ {
return -1; return -1;
} }
tree tree
objc_message_selector () objc_message_selector (void)
{ {
return 0; return 0;
} }
@ -210,14 +204,13 @@ objc_message_selector ()
/* Used by c-typeck.c (build_external_ref), but only for objc. */ /* Used by c-typeck.c (build_external_ref), but only for objc. */
tree tree
lookup_objc_ivar (id) lookup_objc_ivar (tree id ATTRIBUTE_UNUSED)
tree id ATTRIBUTE_UNUSED;
{ {
return 0; return 0;
} }
void void
finish_file () finish_file (void)
{ {
c_objc_common_finish_file (); c_objc_common_finish_file ();
} }