Merge branch 'maint' into HEAD

* maint:
  gnulib: update
  lalr1.cc: avoid static_cast
  glr.c: add missing cast
  regen
  package: bump copyrights to 2020
  gitignore: update
This commit is contained in:
Akim Demaille
2020-01-11 07:38:39 +01:00
7 changed files with 20 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ scriptversion=2019-01-04.17; # UTC
# Bootstrap this package from checked-out sources. # Bootstrap this package from checked-out sources.
# Copyright (C) 2003-2019 Free Software Foundation, Inc. # Copyright (C) 2003-2020 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by

View File

@@ -1975,7 +1975,8 @@ yyprocessOneStack (yyGLRStack* yystackp, ptrdiff_t yyk,
while (yystackp->yytops.yystates[yyk] != YY_NULLPTR) while (yystackp->yytops.yystates[yyk] != YY_NULLPTR)
{ {
yyStateNum yystate = yystackp->yytops.yystates[yyk]->yylrState; yyStateNum yystate = yystackp->yytops.yystates[yyk]->yylrState;
YY_DPRINTF ((stderr, "Stack %ld Entering state %d\n", yyk, yystate)); YY_DPRINTF ((stderr, "Stack %ld Entering state %d\n",
YY_CAST (long, yyk), yystate));
YY_ASSERT (yystate != YYFINAL); YY_ASSERT (yystate != YYFINAL);

View File

@@ -921,7 +921,7 @@ b4_dollar_popdef])[]dnl
--yyerrstatus_; --yyerrstatus_;
// Shift the lookahead token. // Shift the lookahead token.
yypush_ ("Shifting", static_cast<state_type> (yyn), YY_MOVE (yyla));]b4_lac_if([[ yypush_ ("Shifting", state_type (yyn), YY_MOVE (yyla));]b4_lac_if([[
yy_lac_discard_ ("shift");]])[ yy_lac_discard_ ("shift");]])[
goto yynewstate; goto yynewstate;
@@ -1084,7 +1084,7 @@ b4_dollar_popdef])[]dnl
// Shift the error token.]b4_lac_if([[ // Shift the error token.]b4_lac_if([[
yy_lac_discard_ ("error recovery");]])[ yy_lac_discard_ ("error recovery");]])[
error_token.state = static_cast<state_type> (yyn); error_token.state = state_type (yyn);
yypush_ ("Shifting", YY_MOVE (error_token)); yypush_ ("Shifting", YY_MOVE (error_token));
} }
goto yynewstate; goto yynewstate;

2
gnulib

Submodule gnulib updated: b943dd6649...f5eb8cea72

10
lib/.gitignore vendored
View File

@@ -139,12 +139,15 @@
/isnanl.c /isnanl.c
/iswblank.c /iswblank.c
/itold.c /itold.c
/lc-charset-dispatch.c
/lc-charset-dispatch.h
/ldexpl.c /ldexpl.c
/libc-config.h /libc-config.h
/limits.h /limits.h
/limits.in.h /limits.in.h
/localcharset.c /localcharset.c
/localcharset.h /localcharset.h
/locale.in.h
/localtime-buffer.c /localtime-buffer.c
/localtime-buffer.h /localtime-buffer.h
/lstat.c /lstat.c
@@ -158,10 +161,14 @@
/mbchar.h /mbchar.h
/mbfile.c /mbfile.c
/mbfile.h /mbfile.h
/mbrtowc-impl-utf8.h
/mbrtowc-impl.h
/mbrtowc.c /mbrtowc.c
/mbsinit.c /mbsinit.c
/mbswidth.c /mbswidth.c
/mbswidth.h /mbswidth.h
/mbtowc-lock.c
/mbtowc-lock.h
/memchr.c /memchr.c
/memchr.valgrind /memchr.valgrind
/minmax.h /minmax.h
@@ -209,6 +216,9 @@
/sched.h /sched.h
/sched.in.h /sched.in.h
/setenv.c /setenv.c
/setlocale-lock.c
/setlocale_null.c
/setlocale_null.h
/sig-handler.c /sig-handler.c
/sig-handler.h /sig-handler.h
/sigaction.c /sigaction.c

3
m4/.gitignore vendored
View File

@@ -88,9 +88,9 @@
/locale-fr.m4 /locale-fr.m4
/locale-ja.m4 /locale-ja.m4
/locale-zh.m4 /locale-zh.m4
/locale_h.m4
/localtime-buffer.m4 /localtime-buffer.m4
/lock.m4 /lock.m4
/longlong.m4
/lstat.m4 /lstat.m4
/malloc.m4 /malloc.m4
/malloca.m4 /malloca.m4
@@ -141,6 +141,7 @@
/rmdir.m4 /rmdir.m4
/sched_h.m4 /sched_h.m4
/setenv.m4 /setenv.m4
/setlocale_null.m4
/sh-filename.m4 /sh-filename.m4
/sig_atomic_t.m4 /sig_atomic_t.m4
/sigaction.m4 /sigaction.m4

View File

@@ -1573,6 +1573,8 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
if (yytoken != YYEMPTY) if (yytoken != YYEMPTY)
{ {
int yyn = yypact[+*yyssp]; int yyn = yypact[+*yyssp];
YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
yysize = yysize0;
YYDPRINTF ((stderr, "Constructing syntax error message\n")); YYDPRINTF ((stderr, "Constructing syntax error message\n"));
yyarg[yycount++] = yytname[yytoken]; yyarg[yycount++] = yytname[yytoken];
if (!yypact_value_is_default (yyn)) if (!yypact_value_is_default (yyn))