mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 21:33:04 +00:00
* src/bison.simple: Remove a useless #line directive.
s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. * src/output.c (get_lines_number): New. (output_parser): Adjust, now takes care about the lines of a output muscles. Fix line numbering. (actions_output): Computes the number of lines taken by actions. (output_master_parser): Insert new skeleton which is the name of the output parser file name.
This commit is contained in:
@@ -82,7 +82,8 @@ typedef struct yyltype
|
||||
/* Copy the user declarations. */
|
||||
%%prologue
|
||||
|
||||
#line %%line "%%skeleton"
|
||||
/* Line 85 of bison.simple. */
|
||||
#line %%line "%%parser-file-name"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -511,8 +512,6 @@ yystpcpy (yydest, yysrc)
|
||||
|
||||
|
||||
|
||||
#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 *.
|
||||
It should actually point to an object.
|
||||
@@ -897,7 +896,8 @@ yyreduce:
|
||||
{
|
||||
%%actions
|
||||
}
|
||||
#line %%line "%%skeleton"
|
||||
/* Line 902 of bison.simple. */
|
||||
#line %%line "%%parser-file-name"
|
||||
|
||||
yyvsp -= yylen;
|
||||
yyssp -= yylen;
|
||||
|
||||
Reference in New Issue
Block a user