From: Pascal Bart Date: Wed, 19 Sep 2001 19:25:02 +0000 (+0000) Subject: * src/bison.simple: s/%%filename/%%skeleton. X-Git-Tag: pre-merge-of-1-29-branch~15 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/f508cb0ac9a43d70b186255021420a27b3225f48?ds=inline * src/bison.simple: s/%%filename/%%skeleton. * src/muscle_tab.c (getargs.h): Include it. (muscle_init): Insert new muscle skeleton. --- diff --git a/ChangeLog b/ChangeLog index 3a9d6e3f..81afa3ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-09-19 Pascal Bart + + * src/bison.simple: s/%%filename/%%skeleton. + * src/muscle_tab.c (getargs.h): Include it. + (muscle_init): Insert new muscle skeleton. + 2001-09-18 Pascal Bart * src/output.c (output_parser): Delete unused variable actions_dumped. diff --git a/src/bison.simple b/src/bison.simple index 7f17cd15..2e44e86c 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -366,7 +366,7 @@ __yy_memcpy (char *to, const char *from, unsigned int count) -#line %%line "%%filename" +#line %%line "%%skeleton" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. @@ -760,7 +760,7 @@ yyreduce: { %%action /* The action file replaces this line. */ } -#line %%line "%%filename" +#line %%line "%%skeleton" yyvsp -= yylen; yyssp -= yylen; diff --git a/src/muscle_tab.c b/src/muscle_tab.c index 99a3e536..13433edc 100644 --- a/src/muscle_tab.c +++ b/src/muscle_tab.c @@ -25,6 +25,7 @@ #include "hash.h" #include "files.h" #include "muscle_tab.h" +#include "getargs.h" struct hash_table muscle_table; @@ -55,6 +56,9 @@ muscle_init (void) muscle_insert ("version", VERSION); muscle_insert ("filename", infile); + /* Skeleton use. */ + muscle_insert ("skeleton", skeleton); + /* Types. */ muscle_insert ("stype", "int"); muscle_insert ("ltype", "yyltype");