"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/local.at" between
bison-3.8.tar.xz and bison-3.8.1.tar.xz

About: Bison is a general-purpose parser generator.

local.at  (bison-3.8.tar.xz):local.at  (bison-3.8.1.tar.xz)
skipping to change at line 652 skipping to change at line 652
m4_define([AT_YYERROR_PROTOTYPE(c)], m4_define([AT_YYERROR_PROTOTYPE(c)],
[[void ]AT_NAME_PREFIX[error (]AT_YYERROR_FORMALS[)]]) [[void ]AT_NAME_PREFIX[error (]AT_YYERROR_FORMALS[)]])
m4_define([AT_YYERROR_DECLARE_EXTERN(c)], m4_define([AT_YYERROR_DECLARE_EXTERN(c)],
[AT_YYERROR_PROTOTYPE;]) [AT_YYERROR_PROTOTYPE;])
m4_define([AT_YYERROR_DECLARE(c)], m4_define([AT_YYERROR_DECLARE(c)],
[[#include <stdio.h> [[#include <stdio.h>
]AT_LOCATION_PRINT_DECLARE[ ]AT_LOCATION_PRINT_DECLARE[
]AT_YACC_IF([], [[static ]AT_YYERROR_DECLARE_EXTERN])]) /* !POSIX */ static ]AT_YYERROR_DECLARE_EXTERN[]dnl
])
# "%define parse.error custom" uses a different format, easy to check. # "%define parse.error custom" uses a different format, easy to check.
# The "verbose" one can be computed from it (see _AT_CHECK_CALC_ERROR). # The "verbose" one can be computed from it (see _AT_CHECK_CALC_ERROR).
m4_define([AT_YYERROR_DEFINE(c)], m4_define([AT_YYERROR_DEFINE(c)],
[AT_LOCATION_PRINT_DEFINE[ [AT_LOCATION_PRINT_DEFINE[
]AT_ERROR_CUSTOM_IF([[ ]AT_ERROR_CUSTOM_IF([[
int int
yyreport_syntax_error (const yypcontext_t *ctx]AT_PARAM_IF([, AT_PARSE_PARAMS])[ ) yyreport_syntax_error (const yypcontext_t *ctx]AT_PARAM_IF([, AT_PARSE_PARAMS])[ )
{ {
skipping to change at line 697 skipping to change at line 698
fprintf (stderr, " [%s]", yysymbol_name (expected[i])); fprintf (stderr, " [%s]", yysymbol_name (expected[i]));
fprintf (stderr, ")"); fprintf (stderr, ")");
} }
} }
fprintf (stderr, "\n"); fprintf (stderr, "\n");
return res; return res;
} }
]])[ ]])[
/* A C error reporting function. */ /* A C error reporting function. */
]AT_YACC_IF([], [static])[ /* !POSIX */ static
]AT_YYERROR_PROTOTYPE[ ]AT_YYERROR_PROTOTYPE[
{]m4_bpatsubst(m4_defn([AT_PARSE_PARAMS]), {]m4_bpatsubst(m4_defn([AT_PARSE_PARAMS]),
[[^,]+[^A-Za-z_0-9]\([A-Za-z_][A-Za-z_0-9]*\),* *], [ [[^,]+[^A-Za-z_0-9]\([A-Za-z_][A-Za-z_0-9]*\),* *], [
YY_USE (\1);])dnl YY_USE (\1);])dnl
AT_YYERROR_SEES_LOC_IF([[ AT_YYERROR_SEES_LOC_IF([[
LOCATION_PRINT (stderr, ]AT_LOC[); LOCATION_PRINT (stderr, ]AT_LOC[);
fprintf (stderr, ": ");]])[ fprintf (stderr, ": ");]])[
fprintf (stderr, "%s\n", msg);]m4_bmatch(m4_defn([AT_PARSE_PARAMS]), [nerrs], [[ fprintf (stderr, "%s\n", msg);]m4_bmatch(m4_defn([AT_PARSE_PARAMS]), [nerrs], [[
++global_nerrs; ++global_nerrs;
++*nerrs;]])[ ++*nerrs;]])[
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)