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.
# 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
# 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)
{
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);

View File

@@ -921,7 +921,7 @@ b4_dollar_popdef])[]dnl
--yyerrstatus_;
// 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");]])[
goto yynewstate;
@@ -1084,7 +1084,7 @@ b4_dollar_popdef])[]dnl
// Shift the error token.]b4_lac_if([[
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));
}
goto yynewstate;

2
gnulib

Submodule gnulib updated: b943dd6649...f5eb8cea72

10
lib/.gitignore vendored
View File

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

3
m4/.gitignore vendored
View File

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

View File

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