From f508cb0ac9a43d70b186255021420a27b3225f48 Mon Sep 17 00:00:00 2001 From: Pascal Bart Date: Wed, 19 Sep 2001 19:25:02 +0000 Subject: [PATCH] * src/bison.simple: s/%%filename/%%skeleton. * src/muscle_tab.c (getargs.h): Include it. (muscle_init): Insert new muscle skeleton. --- ChangeLog | 6 ++++++ src/bison.simple | 4 ++-- src/muscle_tab.c | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) 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"); -- 2.45.2