+2002-10-22 Akim Demaille <akim@epita.fr>
+
+ * data/README: New.
+
+2002-10-20 Paul Eggert <eggert@twinsun.com>
+
+ Remove K&R vestiges.
+ * configure.ac (AC_C_CONST, AM_C_PROTOTYPES): Remove.
+ * src/complain.c (VA_START): Remove. Assume prototypes.
+ (vfprintf) [! (HAVE_VPRINTF || defined vfprintf)]: New macro.
+ (private_strerror, warn_at, warn, complain_at, complain, fatal_at,
+ fatal): Assume prototypes.
+ * src/complain.h: Assume prototypes.
+ * src/system.h (PARAMS): Remove.
+ Include <limits.h> unconditionally, since it's guaranteeed even
+ for a freestanding C89 compiler.
+ (SHRT_MIN, SHRT_MAX): Remove, since C89 guarantees them.
+ * src/vmsgetargs.c (getargs, cli_present, cli_get_value): Prototype.
+
+2002-10-20 Akim Demaille <akim@epita.fr>
+
+ * src/muscle_tab.c (muscle_grow): Remove trailing debugging code.
+ * data/glr.c (YY_USER_FORMALS, YY_USER_ARGS): New.
+ (yyuserAction, yydoAction, yyglrReduce, yyresolveValue)
+ (yyresolveStates, yyresolveAction, yyresolveStack)
+ (yyprocessOneStack): Use them.
+ (yy_reduce_print): New.
+ * tests/calc.at (_AT_DATA_CALC_Y): Exercise %parse-param.
+
+2002-10-20 Akim Demaille <akim@epita.fr>
+
+ * data/c.m4 (b4_c_ansi_args): Recognize functions with no
+ arguments and output `void'.
+ (b4_c_function): Rename as...
+ (b4_c_function_def): this.
+ (b4_c_function_decl, b4_c_ansi_function_def)
+ (b4_c_ansi_function_decl): New.
+ Change the interpretation of the arguments: before `int, foo', now
+ `int foo, foo'.
+ * data/yacc.c (yyparse): Prototype and define thanks to these.
+ Adjust b4_c_function_def uses.
+ * data/glr.c (yyparse): Likewise, but ANSI only.
+
+2002-10-20 Akim Demaille <akim@epita.fr>
+
+ * src/output.c (prepare): Move the definition of `tokens_number',
+ `nterms_number', `undef_token_number', `user_token_number_max'
+ to...
+ (prepare_tokens): Here.
+ (prepare_tokens): Rename as...
+ (prepare_symbols): this.
+ (prepare): Move the definition of `rules_number' to...
+ (prepare_rules): here.
+ (prepare): Move the definition of `last', `final_state_number',
+ `states_number' to...
+ (prepare_states): here.
+ * data/yacc.c, data/lalr1.cc, data/glr.c: Normalize `>' into `<'.
+
+2002-10-20 Akim Demaille <akim@epita.fr>
+
+ * src/tables.h, src/tables.c, src/output.c: Comment changes.
+
+2002-10-20 Akim Demaille <akim@epita.fr>
+
+ * data/yacc.c, data/yacc.c (b4_location_if, b4_pure_if): Move to...
+ * data/c.m4: here.
+
+2002-10-20 Akim Demaille <akim@epita.fr>
+
+ * src/output.c (prepare): Use MUSCLE_INSERT_STRING.
+ * src/muscle_tab.c (muscle_pair_list_grow): Rename `val as
+ `pair'.
+ (muscle_init): Move the `b4_ltype', `b4_maxdepth', `b4_initdepth',
+ `name' to...
+ * data/glr.c, data/lalr1.cc, data/yacc.c (b4_location_type)
+ (b4_stack_depth_init, b4_stack_depth_max, b4_parser_class_name):
+ These.
+
+2002-10-19 Paul Eggert <eggert@twinsun.com>
+
+ Do not create a temporary file, as that involves security and
+ cleanup headaches. Instead, use a pair of pipes.
+ Derived from a suggestion by Florian Krohm.
+ * lib/subpipe.c, lib/subpipe.h, m4/subpipe.m4: New files.
+ * lib/mkstemp.c, lib/readpipe.c, lib/tempname.c, m4/mkstemp.m4: Remove.
+ * configure.ac (UTILS_FUNC_MKSTEMP, jm_PREREQ_TEMPNAME): Remove.
+ (BISON_PREREQ_SUBPIPE): Add.
+ * lib/Makefile.am (libbison_a_SOURCES): Remove readpipe.c.
+ Add subpipe.h, subpipe.c.
+ * m4/Makefile.am (EXTRA_DIST): Remove mkstemp.m4. Add subpipe.m4.
+ * po/POTFILES.in: Add lib/subpipe.c.
+ * src/output.c: Include "subpipe.h".
+ (m4_invoke): Remove decl.
+ (scan_skel): New decl.
+ (output_skeleton): Use pipe rather than temporary file for m4 input.
+ Check that m4sugar.m4 is readable, to avoid deadlock.
+ Check for pipe I/O error.
+ * src/scan-skel.l (readpipe): Remove decl.
+ (scan_skel): New function, to be used in place of m4_invoke.
+ Read from stream rather than file.
+
+ * lib/timevar.c (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Do not cast to
+ float, as this generates a warning on Solaris 8 + GCC 3.2 with
+ --enable-gcc-warnings. Instead, divide into 1.0 rather than 1;
+ this generates a more-accurate value anyway.
+
+ * lib/timevar.c (timervar_accumulate): Rename locals to
+ avoid confusion with similarly-named more-global.
+ * src/muscle_tab.c (muscle_pair_list_grow): Likewise.
+
+ * src/output.c (prepare): Use xstrdup to convert char const *
+ to char *, to avoid GCC warning.
+
+2002-10-19 Akim Demaille <akim@epita.fr>
+
+ * tests/calc.at (_AT_DATA_CALC_Y): Define VAL, LOC, LEX_FORMALS,
+ LEX_PRE_FORMALS, LEX_ARGS, LEX_PRE_ARGS, USE_LEX_ARGS.
+ Use them to have `calc.y' ready for %pure-parser.
+ * data/yacc.c (YYLEX): Pass a yylex return type to
+ b4_c_function_call.
+
+2002-10-19 Akim Demaille <akim@epita.fr>
+
+ Prototype support of %lex-param and %parse-param.
+
+ * src/parse-gram.y: Add the definition of the %lex-param and
+ %parse-param tokens, plus their rules.
+ Drop the `_' version of %glr-parser.
+ Add the "," token.
+ * src/scan-gram.l (INITIAL): Scan them.
+ * src/muscle_tab.c: Comment changes.
+ (muscle_insert, muscle_find): Rename `pair' as `probe'.
+ * src/muscle_tab.h (MUSCLE_INSERT_PREFIX): Remove unused.
+ (muscle_entry_s): The `value' member is no longer const.
+ Adjust all dependencies.
+ * src/muscle_tab.c (muscle_init): Adjust: use
+ MUSCLE_INSERT_STRING.
+ Initialize the obstack earlier.
+ * src/muscle_tab.h, src/muscle_tab.c (muscle_grow)
+ (muscle_pair_list_grow): New.
+ * data/c.m4 (b4_c_function_call, b4_c_args): New.
+ * data/yacc.c (YYLEX): Use b4_c_function_call to honor %lex-param.
+ * tests/calc.at: Use %locations, not --locations.
+ (AT_CHECK_CALC_GLR): Use %glr-parser, not %glr_parser.
+
2002-10-19 Akim Demaille <akim@epita.fr>
* src/getargs.c (usage): Take status as argument and exit