* src/bison.simple: Don't hard code the skeleton line and filename.

* src/output.c (output_parser): Rename 'line' as 'output_line'.
New line counter 'skeleton_line' (skeleton-line muscle).
This commit is contained in:
Marc Autret
2001-12-17 20:28:51 +00:00
parent ab3399e0c6
commit 897668ee8d
3 changed files with 22 additions and 15 deletions

View File

@@ -82,7 +82,7 @@ typedef struct yyltype
/* Copy the user declarations. */
%%prologue
/* Line 85 of bison.simple. */
/* Line %%skeleton-line of %%skeleton. */
#line %%line "%%parser-file-name"
#include <stdio.h>
@@ -896,7 +896,8 @@ yyreduce:
{
%%actions
}
/* Line 902 of bison.simple. */
/* Line %%skeleton-line of %%skeleton. */
#line %%line "%%parser-file-name"
yyvsp -= yylen;