diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-10-26 10:38:53 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-10-26 10:39:01 +0200 |
commit | a5fc4e3b44870abddc9fdaaf53e98a1ca0ce7b16 (patch) | |
tree | 61711105ebdff49e1b1050ea7715b9ec59e18c37 /src | |
parent | 3be912e4af90a9818a78239daaee4a15bdbcda06 (diff) | |
download | bison-a5fc4e3b44870abddc9fdaaf53e98a1ca0ce7b16.tar.gz |
regen
Diffstat (limited to 'src')
-rw-r--r-- | src/parse-gram.c | 18 | ||||
-rw-r--r-- | src/parse-gram.h | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/parse-gram.c b/src/parse-gram.c index 3b9e34a5..a3b1343b 100644 --- a/src/parse-gram.c +++ b/src/parse-gram.c @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.4.2.191-54c5d. */ +/* A Bison parser, made by GNU Bison 3.4.2.213-aa24. */ /* Bison implementation for Yacc-like parsers in C @@ -48,7 +48,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "3.4.2.191-54c5d" +#define YYBISON_VERSION "3.4.2.213-aa24" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -1821,8 +1821,8 @@ YYLTYPE yylloc = yyloc_default; { /* Bison's grammar can initial empty locations, hence a default location is needed. */ - boundary_set (&yylloc.start, current_file, 1, 1, 1); - boundary_set (&yylloc.end, current_file, 1, 1, 1); + boundary_set (&yylloc.start, grammar_file, 1, 1, 1); + boundary_set (&yylloc.end, grammar_file, 1, 1, 1); } @@ -1840,7 +1840,7 @@ yynewstate: /*--------------------------------------------------------------------. -| yynewstate -- set current state (the top of the stack) to yystate. | +| yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: YYDPRINTF ((stderr, "Entering state %d\n", yystate)); @@ -3042,16 +3042,16 @@ handle_skeleton (location const *loc, char const *skel) char const *skeleton_user = skel; if (strchr (skeleton_user, '/')) { - size_t dir_length = strlen (current_file); - while (dir_length && current_file[dir_length - 1] != '/') + size_t dir_length = strlen (grammar_file); + while (dir_length && grammar_file[dir_length - 1] != '/') --dir_length; - while (dir_length && current_file[dir_length - 1] == '/') + while (dir_length && grammar_file[dir_length - 1] == '/') --dir_length; char *skeleton_build = xmalloc (dir_length + 1 + strlen (skeleton_user) + 1); if (dir_length > 0) { - memcpy (skeleton_build, current_file, dir_length); + memcpy (skeleton_build, grammar_file, dir_length); skeleton_build[dir_length++] = '/'; } strcpy (skeleton_build + dir_length, skeleton_user); diff --git a/src/parse-gram.h b/src/parse-gram.h index e3c56af1..18e5aabd 100644 --- a/src/parse-gram.h +++ b/src/parse-gram.h @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.4.2.191-54c5d. */ +/* A Bison parser, made by GNU Bison 3.4.2.213-aa24. */ /* Bison interface for Yacc-like parsers in C |