* src/bison.s1 (YYLLOC_DEFAULT): New macro.

Provide a default definition.
Use it when executing the default @ action.
* src/reader.c (reader_output_yylsp): No longer include
`timestamp' and `text' in the default YYLTYPE.
This commit is contained in:
Akim Demaille
2000-12-14 13:03:32 +00:00
parent 2a91a95e9e
commit 3abcd45995
11 changed files with 404 additions and 385 deletions

View File

@@ -1992,6 +1992,11 @@ reader (void)
}
/*------------------------------------------------------------------.
| Define YYLTYPE. Cannot be in the skeleton since we might have to |
| output it in the headers if --defines is used. |
`------------------------------------------------------------------*/
void
reader_output_yylsp (struct obstack *oout)
{
@@ -2001,13 +2006,11 @@ reader_output_yylsp (struct obstack *oout)
#ifndef YYLTYPE\n\
typedef struct yyltype\n\
{\n\
int timestamp;\n\
int first_line;\n\
int first_column;\
int first_column;\n\
\n\
int last_line;\n\
int last_column;\n\
char *text;\n\
} yyltype;\n\
\n\
# define YYLTYPE yyltype\n\