diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-03-17 20:41:46 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-03-17 20:41:46 +0000 |
commit | 52dabb6c609b81591884caf64894caa84e16a29f (patch) | |
tree | 01d8cbe7674c79a641d252751aa12e5e865b5e8c /gcc/f/com.c | |
parent | 6e1a435df002c87da258a71a64a43720b17d1631 (diff) | |
download | gcc-52dabb6c609b81591884caf64894caa84e16a29f.zip gcc-52dabb6c609b81591884caf64894caa84e16a29f.tar.gz gcc-52dabb6c609b81591884caf64894caa84e16a29f.tar.bz2 |
c-common.h (yyparse, [...]): New.
* c-common.h (yyparse, c_common_parse_file): New.
* c-lang.c: Include c-common.h.
(LANG_HOOKS_PARSE_FILE): Redefine.
* c-lex.c: Include c-common.h.
(yyparse): Rename c_common_parse_file. Call yyparse.
* c-parse.in (yyparse): Remove macro.
* c-tree.h (yyparse_1): Remove.
* langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hoooks): New hook parse_file.
* toplev.c (compile_file): Use parse_file hook.
* tree.h (yyparse): Remove.
ada:
* misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
(yyparse): Rename gnat_parse_file.
cp:
* cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
* parse.y (yyparse): Remove macro.
f:
* com.c (LANG_HOOKS_PARSE_FILE): Redefine.
* com.h (ffe_parse_file): New.
* parse.c (NAME_OF_STDIN): Remove.
(yyparse): Rename ffe_parse_file.
java:
* java-tree.h (java_parse_file): New.
* jcf-parse.c (yyparse): Rename java_parse_file.
* lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
objc:
* objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
From-SVN: r50926
Diffstat (limited to 'gcc/f/com.c')
-rw-r--r-- | gcc/f/com.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/f/com.c b/gcc/f/com.c index f895db4..016b422 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -13928,7 +13928,7 @@ start_decl (tree decl, bool is_top_level) Returns 1 on success. If the DECLARATOR is not suitable for a function (it defines a datum instead), we return 0, which tells - yyparse to report a parse error. + ffe_parse_file to report a parse error. NESTED is nonzero for a function nested within another function. */ @@ -14211,6 +14211,8 @@ static void ffe_print_identifier PARAMS ((FILE *, tree, int)); #define LANG_HOOKS_INIT_OPTIONS ffe_init_options #undef LANG_HOOKS_DECODE_OPTION #define LANG_HOOKS_DECODE_OPTION ffe_decode_option +#undef LANG_HOOKS_PARSE_FILE +#define LANG_HOOKS_PARSE_FILE ffe_parse_file #undef LANG_HOOKS_PRINT_IDENTIFIER #define LANG_HOOKS_PRINT_IDENTIFIER ffe_print_identifier |