This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA]: yyparse langhook


On Sun, Mar 17, 2002 at 03:22:17PM +0000, Neil Booth wrote:
> 	* 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.

Ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]