mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 07:43:03 +00:00
* data/yacc.c (yytnamerr): Fix typo: local var should be of type
YYSIZE_T, not size_t. * tests/regression.at (Trivial grammars): New test, to catch the error fixed by the above patch.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* data/yacc.c (yytnamerr): Fix typo: local var should be of type
|
||||||
|
YYSIZE_T, not size_t.
|
||||||
|
* tests/regression.at (Trivial grammars): New test, to catch
|
||||||
|
the error fixed by the above patch.
|
||||||
|
|
||||||
2006-05-14 Akim Demaille <akim@lrde.epita.fr>
|
2006-05-14 Akim Demaille <akim@lrde.epita.fr>
|
||||||
|
|
||||||
* doc/bison.texinfo (C++ Bison Interface): Clarify the naming
|
* doc/bison.texinfo (C++ Bison Interface): Clarify the naming
|
||||||
|
|||||||
@@ -800,7 +800,7 @@ yytnamerr (char *yyres, const char *yystr)
|
|||||||
{
|
{
|
||||||
if (*yystr == '"')
|
if (*yystr == '"')
|
||||||
{
|
{
|
||||||
size_t yyn = 0;
|
YYSIZE_T yyn = 0;
|
||||||
char const *yyp = yystr;
|
char const *yyp = yystr;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
|
|||||||
@@ -21,6 +21,32 @@
|
|||||||
AT_BANNER([[Regression tests.]])
|
AT_BANNER([[Regression tests.]])
|
||||||
|
|
||||||
|
|
||||||
|
## ------------------ ##
|
||||||
|
## Trivial grammars. ##
|
||||||
|
## ------------------ ##
|
||||||
|
|
||||||
|
AT_SETUP([Trivial grammars])
|
||||||
|
|
||||||
|
AT_DATA_GRAMMAR([input.y],
|
||||||
|
[[%{
|
||||||
|
void yyerror (char const *);
|
||||||
|
int yylex (void);
|
||||||
|
%}
|
||||||
|
|
||||||
|
%error-verbose
|
||||||
|
|
||||||
|
%%
|
||||||
|
|
||||||
|
program: 'x';
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([bison -o input.c input.y])
|
||||||
|
AT_COMPILE([input.o], [-c input.c])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## ------------------------- ##
|
## ------------------------- ##
|
||||||
## Early token definitions. ##
|
## Early token definitions. ##
|
||||||
## ------------------------- ##
|
## ------------------------- ##
|
||||||
|
|||||||
Reference in New Issue
Block a user