* data/bison.simple, data/bison.c++: Be sure to restore the

current #line when returning to the skeleton contents after having
exposed the input file's #line.
This commit is contained in:
Akim Demaille
2002-06-14 17:29:17 +00:00
parent 75d1fe1611
commit e96c9728da
5 changed files with 827 additions and 594 deletions

View File

@@ -193,7 +193,9 @@ b4_token_defines(b4_tokens)
#ifndef YYSTYPE
m4_ifdef([b4_stype],
[#line b4_stype_line "b4_filename"
typedef union b4_stype yystype;],
typedef union b4_stype yystype;
/* Line __line__ of __file__. */
#line __oline__ "__ofile__"],
[typedef int yystype;])
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
@@ -1240,7 +1242,9 @@ b4_token_defines(b4_tokens)
#ifndef YYSTYPE
m4_ifdef([b4_stype],
[#line b4_stype_line "b4_filename"
typedef union b4_stype yystype;],
typedef union b4_stype yystype;
/* Line __line__ of __file__. */
#line __oline__ "__ofile__"],
[typedef int yystype;])
# define YYSTYPE yystype
#endif