* src/bison.simple: s/%%filename/%%skeleton.

* src/muscle_tab.c (getargs.h): Include it.
(muscle_init): Insert new muscle skeleton.
This commit is contained in:
Pascal Bart
2001-09-19 19:25:02 +00:00
parent f3c383d683
commit f508cb0ac9
3 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2001-09-19 Pascal Bart <pascal.bart@epita.fr>
* 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 <pascal.bart@epita.fr>
* src/output.c (output_parser): Delete unused variable actions_dumped.

View File

@@ -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;

View File

@@ -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");