aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2000-11-20 23:39:52 -0800
committerRichard Henderson <rth@gcc.gnu.org>2000-11-20 23:39:52 -0800
commit3aac38d70cbb15e40c377d39dd612df4d16ad259 (patch)
treebf302f0b96b0df7401aed3a7535da9fbf23c5932 /gcc/c-parse.in
parent66bc5940f137cfe9a38e37c2619189604fd246b7 (diff)
downloadgcc-3aac38d70cbb15e40c377d39dd612df4d16ad259.zip
gcc-3aac38d70cbb15e40c377d39dd612df4d16ad259.tar.gz
gcc-3aac38d70cbb15e40c377d39dd612df4d16ad259.tar.bz2
parse.y (yyparse_1): Rename the parser entry point.
* cp/parse.y (yyparse_1): Rename the parser entry point. * c-lex.c (orig_filename): New variable. (init_c_lex): Set it. Move call to cpp_start_read ... (yyparse): ... here. New function. * c-parse.in (yyparse_1): Rename the parser entry point. * c-tree.h: Declare it. From-SVN: r37607
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 517b488..5943fa4 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -72,8 +72,11 @@ end ifc
/* Like YYERROR but do call yyerror. */
#define YYERROR1 { yyerror ("syntax error"); YYERROR; }
-/* Cause the `yydebug' variable to be defined. */
+/* Cause the "yydebug" variable to be defined. */
#define YYDEBUG 1
+
+/* Rename the "yyparse" function so that we can override it elsewhere. */
+#define yyparse yyparse_1
%}
%start program