]> git.ipfire.org Git - thirdparty/gcc.git/commit
c-common.h (yyparse, [...]): New.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sun, 17 Mar 2002 20:41:46 +0000 (20:41 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 17 Mar 2002 20:41:46 +0000 (20:41 +0000)
commit52dabb6c609b81591884caf64894caa84e16a29f
tree01d8cbe7674c79a641d252751aa12e5e865b5e8c
parent6e1a435df002c87da258a71a64a43720b17d1631
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
24 files changed:
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/misc.c
gcc/c-common.h
gcc/c-lang.c
gcc/c-lex.c
gcc/c-parse.in
gcc/c-tree.h
gcc/cp/ChangeLog
gcc/cp/cp-lang.c
gcc/cp/parse.y
gcc/f/ChangeLog
gcc/f/com.c
gcc/f/com.h
gcc/f/parse.c
gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/jcf-parse.c
gcc/java/lang.c
gcc/langhooks-def.h
gcc/langhooks.h
gcc/objc/objc-lang.c
gcc/toplev.c
gcc/tree.h