yacc.c: instead of duplicating y.tab.h inside y.tac.c, include it.

This is already what glr.c and lalr1.cc do.

* data/yacc.c: here.
This commit is contained in:
Akim Demaille
2012-06-12 16:15:14 +02:00
parent ae6bdabbf6
commit 0f11eec272
3 changed files with 17 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ m4_if(b4_prefix, [yy], [],
]b4_null_define[
]b4_defines_if([[#include "@basename(]b4_spec_defines_file[@)"]],
[b4_shared_declarations])[
[b4_shared_declarations])[
/* Enabling traces. */
#ifndef YYDEBUG

View File

@@ -319,7 +319,8 @@ m4_if(b4_prefix, [yy], [],
# define YYTOKEN_TABLE ]b4_token_table[
#endif
]b4_shared_declarations[
]b4_defines_if([[#include "@basename(]b4_spec_defines_file[@)"]],
[b4_shared_declarations])[
/* Copy the second part of user declarations. */
]b4_user_post_prologue