]> git.saurik.com Git - bison.git/log
bison.git
23 years ago* src/reader.c (symbols_output): New, extracted from...
Akim Demaille [Mon, 19 Nov 2001 10:14:29 +0000 (10:14 +0000)] 
* src/reader.c (symbols_output): New, extracted from...
(packsymbols): Here.
(reader): Call it.

23 years ago* src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
Akim Demaille [Mon, 19 Nov 2001 10:09:24 +0000 (10:09 +0000)] 
* src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
(maxrhs): this new function.

23 years ago* src/lalr.c (F): New macro to access to the variable F.
Akim Demaille [Mon, 19 Nov 2001 10:09:11 +0000 (10:09 +0000)] 
* src/lalr.c (F): New macro to access to the variable F.
Adjust.

23 years ago* src/lalr.h (LA): New macro to access to the variable LA.
Akim Demaille [Mon, 19 Nov 2001 10:08:54 +0000 (10:08 +0000)] 
* src/lalr.h (LA): New macro to access to the variable LA.
* src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
* src/lalr.c: Adjust.

23 years ago* src/lalr.c (initialize_LA): Only initialize LA. Let...
Akim Demaille [Mon, 19 Nov 2001 10:08:34 +0000 (10:08 +0000)] 
* src/lalr.c (initialize_LA): Only initialize LA.  Let...
(set_state_table): handle the `lookaheads' members.

23 years ago* src/lalr.h (lookaheads): Removed array, which contents is now
Akim Demaille [Mon, 19 Nov 2001 10:08:20 +0000 (10:08 +0000)] 
* src/lalr.h (lookaheads): Removed array, which contents is now
member of...
(state_t): this structure.
* src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
Adjust.

23 years ago* src/lalr.h (consistent): Removed array, which contents is now
Akim Demaille [Mon, 19 Nov 2001 10:08:02 +0000 (10:08 +0000)] 
* src/lalr.h (consistent): Removed array, which contents is now
member of...
(state_t): this structure.
* src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
Adjust.

23 years ago* src/lalr.h (reduction_table, shift_table): Removed arrays, which
Akim Demaille [Mon, 19 Nov 2001 10:07:44 +0000 (10:07 +0000)] 
* src/lalr.h (reduction_table, shift_table): Removed arrays, which
contents is now members of...
(state_t): this structure.
* src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
Adjust.

23 years ago* src/lalr.h (state_t): New.
Akim Demaille [Mon, 19 Nov 2001 10:07:14 +0000 (10:07 +0000)] 
* src/lalr.h (state_t): New.
(state_table): Be a state_t * instead of a core **.
(accessing_symbol): Remove, part of state_t.
* src/lalr.c: Adjust.
(set_accessing_symbol): Merge into...
(set_state_table): this.
* src/print_graph.c, src/conflicts.c: Adjust.

23 years ago* tests/calc.at, tests/output.at, tests/regression.at,
Akim Demaille [Wed, 14 Nov 2001 15:20:47 +0000 (15:20 +0000)] 
* tests/calc.at, tests/output.at, tests/regression.at,
* tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
now the tests are run in private dirs, therefore AC_CLEANUP and
family can be simplified to 0-ary.
* tests/atlocal.in: Now that we run `elsewhere' than in tests/,
use abs. path to find config.h.
* tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
stderr, there can be way too much random noise.
Instead pass -Werror to GCC and rely on the exit status.
Reported by Wolfram Wagner.

23 years ago* src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
Akim Demaille [Wed, 14 Nov 2001 14:57:44 +0000 (14:57 +0000)] 
* src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
defined only if yyoverflow is defined, to avoid `warning: unused
variable `yyvs1''.
Reported by The Test Suite.

23 years ago* src/print.c: Include reduce.h.
Akim Demaille [Wed, 14 Nov 2001 14:43:58 +0000 (14:43 +0000)] 
* src/print.c: Include reduce.h.
Reported by Hans Aberg.

23 years ago* src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
Akim Demaille [Wed, 14 Nov 2001 14:15:22 +0000 (14:15 +0000)] 
* src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
definition.
* src/main.c (main): Use them.
Suggested by Hans Aberg.

23 years agoAdjust ngettext default.
Akim Demaille [Mon, 12 Nov 2001 10:14:44 +0000 (10:14 +0000)] 
Adjust ngettext default.

23 years ago* src/system.h (ngettext): Now that we use ngettext, be sure to
Akim Demaille [Mon, 12 Nov 2001 09:57:58 +0000 (09:57 +0000)] 
* src/system.h (ngettext): Now that we use ngettext, be sure to
provide a default definition when NLS are not used.

23 years ago* doc/bison.texinfo: Use `$' as shell prompt, not `%'.
Akim Demaille [Mon, 12 Nov 2001 09:36:31 +0000 (09:36 +0000)] 
* doc/bison.texinfo: Use `$' as shell prompt, not `%'.
Use @kbd to denote user input.
(Language and Grammar): ANSIfy the example.
Adjust its layout for info/notinfo.
(Location Tracking Calc): Output error messages to stderr.
Output locations in a more GNUtically correct way.
Fix a couple of Englishos.
Adjust @group/@end group pairs.

23 years ago%expext was not functioning at all.
Akim Demaille [Mon, 12 Nov 2001 09:33:38 +0000 (09:33 +0000)] 
%expext was not functioning at all.
* src/conflicts.c (expected_conflicts): Set to -1.
(conflict_report): Use ngettext.
(conflicts_print): Check %expect and make its violation an error.
* doc/bison.texinfo (Expect Decl): Adjust.
* configure.in (AM_GNU_GETTEXT): Ask for ngettext.
* tests/regression.at (%expect not enough, %expect right)
(%expect too much): New.

23 years ago* tests/regression.at (Conflicts): Rename as...
Akim Demaille [Mon, 12 Nov 2001 09:33:04 +0000 (09:33 +0000)] 
* tests/regression.at (Conflicts): Rename as...
(Unresolved SR Conflicts): this.
(Solved SR Conflicts): New.

23 years ago* src/reduce.c (print_results): Rename as...
Akim Demaille [Mon, 12 Nov 2001 09:32:51 +0000 (09:32 +0000)] 
* src/reduce.c (print_results): Rename as...
(reduce_output): This.
Output to OUT, passed as argument, instead of output_obstack.
(dump_grammar): Likewise.
(reduce_free): New.
Also free V1.
(reduce_grammar): No longer call reduce_output, since...
* src/print.c (print_results): do it.
* src/main.c (main): Call reduce_free;

23 years ago* src/conflicts.c (print_reductions): Accept OUT as argument.
Akim Demaille [Mon, 12 Nov 2001 09:32:35 +0000 (09:32 +0000)] 
* src/conflicts.c (print_reductions): Accept OUT as argument.
Output to it, not to output_obstack.
* src/print.c (print_actions): Adjust.

23 years ago* src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
Akim Demaille [Mon, 12 Nov 2001 09:31:40 +0000 (09:31 +0000)] 
* src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
the result instead of using...
(src_total, rrc_total, src_count, rrc_count): Remove.
(any_conflicts): Remove.
(print_conflicts): Split into...
(conflicts_print, conflicts_output): New.
* src/conflicts.h: Adjust.
* src/main.c (main): Invoke both conflicts_output and conflicts_print.
* src/print.c (print_grammar): Issue `n' between to rule outputs.
* tests/regression.at (Conflicts): New.
Reported by Tom Lane.

23 years ago* tests/regression.at (Invalid input): Remove, duplicate with
Akim Demaille [Mon, 12 Nov 2001 09:25:19 +0000 (09:25 +0000)] 
* tests/regression.at (Invalid input): Remove, duplicate with
``Invalid input: 1''.

23 years ago* tests/torture.at (AT_DATA_STACK_TORTURE)
Akim Demaille [Mon, 12 Nov 2001 09:25:05 +0000 (09:25 +0000)] 
* tests/torture.at (AT_DATA_STACK_TORTURE)
(Exploding the Stack Size with Alloca)
(Exploding the Stack Size with Malloc): New.

23 years ago* src/bison.simple (YYSTACK_REALLOC): New.
Akim Demaille [Mon, 12 Nov 2001 09:24:50 +0000 (09:24 +0000)] 
* src/bison.simple (YYSTACK_REALLOC): New.
(yyparse) [!yyoverflow]: Use it and free the old stack.
Reported by FIXME: Who.

23 years ago* src/bison.simple: Define type yystype instead of YYSTYPE, and
Akim Demaille [Mon, 12 Nov 2001 09:24:14 +0000 (09:24 +0000)] 
* src/bison.simple: Define type yystype instead of YYSTYPE, and
define CPP macro, which substitute YYSTYPE by yystype.
* src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
with yyltype/YYLTYPE.  This allows inclusion of the generated
header within the parser if the compiler, such as GGC, accepts
multiple equivalent #defines.
From Akim.

23 years ago* src/reader.c (symbols_output): New, extracted from...
Akim Demaille [Mon, 5 Nov 2001 14:19:29 +0000 (14:19 +0000)] 
* src/reader.c (symbols_output): New, extracted from...
(packsymbols): here.
(reader): Adjust.

23 years ago* src/lex.c (parse_percent_token): s/quotearg/quote/.
Akim Demaille [Mon, 5 Nov 2001 10:07:46 +0000 (10:07 +0000)] 
* src/lex.c (parse_percent_token): s/quotearg/quote/.

23 years ago* tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
Akim Demaille [Mon, 5 Nov 2001 09:19:00 +0000 (09:19 +0000)] 
* tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
pattern.

23 years agoFormatting changes.
Akim Demaille [Mon, 5 Nov 2001 09:14:55 +0000 (09:14 +0000)] 
Formatting changes.

23 years ago* src/options.h (struct option_table_struct): set_flags is void*.
Akim Demaille [Mon, 5 Nov 2001 09:09:19 +0000 (09:09 +0000)] 
* src/options.h (struct option_table_struct): set_flags is void*.
* src/options.c (longopts): Support `--output' and `%output'.
(usage): Adjust.
* src/lex.h (tok_setopt): Remove, replaced with...
(tok_intopt, tok_stropt): these new guys.
* src/lex.c (getopt.h): Not needed.
(token_buffer, unlexed_token_buffer): Not const.
(percent_table): Promote `-' over `_' in directive names.
Active `%name-prefix', `file-prefix', and `output'.
(parse_percent_token): Accept possible arguments to directives.
Promote `-' over `_' in directive names.

23 years agoAdjust.
Akim Demaille [Mon, 5 Nov 2001 09:00:17 +0000 (09:00 +0000)] 
Adjust.

23 years ago* doc/bison.texinfo (Decl Summary): Split the list into
Akim Demaille [Mon, 5 Nov 2001 08:50:46 +0000 (08:50 +0000)] 
* doc/bison.texinfo (Decl Summary): Split the list into
`directives for grammars' and `directives for bison'.
Sort'em.
Add description of `%name-prefix', `file-prefix', and `output'.
Promote `-' over `_' in directive names.
(Bison Options): s/%locactions/%locations/.  Nice Freudian slip.
Simplify the description of `--name-prefix'.
Promote `-' over `_' in directive names.
Promote `--output' over `--output-file'.
Fix the description of `--defines'.
* tests/output.at: Exercise %file-prefix and %output.

23 years agoReally update refcard.tex...
Akim Demaille [Fri, 2 Nov 2001 17:20:22 +0000 (17:20 +0000)] 
Really update refcard.tex...

23 years ago* doc/refcard.tex: Update.
Akim Demaille [Fri, 2 Nov 2001 17:19:46 +0000 (17:19 +0000)] 
* doc/refcard.tex: Update.

23 years ago* src/symtab.h (SUNDEF): New.
Akim Demaille [Fri, 2 Nov 2001 15:27:11 +0000 (15:27 +0000)] 
* src/symtab.h (SUNDEF): New.
* src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
stand for `uninitialized', instead of 0.
* src/reader.c (packsymbols, parse_thong_decl): Adjust.
* src/lex.c (lex): Adjust.
* tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
Number it 0.
Let yylex return it instead of a plain 0.
Reported by Dick Streefland.

23 years ago* tests/regression.at (Mixing %token styles): New test.
Akim Demaille [Fri, 2 Nov 2001 14:15:48 +0000 (14:15 +0000)] 
* tests/regression.at (Mixing %token styles): New test.

23 years ago* src/reader.c (parse_thong_decl): Formatting changes.
Akim Demaille [Fri, 2 Nov 2001 14:04:54 +0000 (14:04 +0000)] 
* src/reader.c (parse_thong_decl): Formatting changes.
(token_translations_init): New, extracted from...
(packsymbols): Here.
Adjust.

23 years ago* tests/regression.at (AT_TEST_CPP_GUARD_H): New.
Akim Demaille [Thu, 1 Nov 2001 18:28:38 +0000 (18:28 +0000)] 
* tests/regression.at (AT_TEST_CPP_GUARD_H): New.
Check that `9foo.y' produces correct cpp guards.
* src/files.c (compute_header_macro): Prepend `BISON_' to CPP
guards.
Reported by Wwp.

23 years ago* tests/regression.at (Invalid input: 2): New.
Akim Demaille [Thu, 1 Nov 2001 18:05:22 +0000 (18:05 +0000)] 
* tests/regression.at (Invalid input: 2): New.
* src/lex.c (unlexed_token_buffer): New.
(lex, unlex): Adjust: when unlexing, be sure to save token_buffer
too.
Reported by Wwp.

23 years ago* tests/calc.at: Catch up with 1.30.
Akim Demaille [Thu, 1 Nov 2001 17:47:39 +0000 (17:47 +0000)] 
* tests/calc.at: Catch up with 1.30.
* configure.in: Bump to 1.49a.
Adjust to newer Autotest.

23 years agoRegen.
Akim Demaille [Thu, 1 Nov 2001 17:46:46 +0000 (17:46 +0000)] 
Regen.

23 years agoSync with fileutils 4.1.1.
Paul Eggert [Fri, 26 Oct 2001 07:26:00 +0000 (07:26 +0000)] 
Sync with fileutils 4.1.1.

23 years ago* src/conflicts.c: Move global variables rrc_total and src_total ...
Pascal Bart [Fri, 19 Oct 2001 11:03:50 +0000 (11:03 +0000)] 
* src/conflicts.c: Move global variables rrc_total and src_total ...
(print_conflicts): here.
* src/output.c (output): Free global variable user_toknums.
* src/lex.c (token_obstack): Become static.

23 years agoMore ignores.
Akim Demaille [Thu, 18 Oct 2001 15:27:30 +0000 (15:27 +0000)] 
More ignores.

23 years ago* tests/atlocal.in (GCC): Add.
Akim Demaille [Thu, 18 Oct 2001 15:26:56 +0000 (15:26 +0000)] 
* tests/atlocal.in (GCC): Add.
* tests/calc.at: s/m4_match/m4_bmatch/.
s/m4_patsubst/m4_bpatsubst/.
(AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
* configure.in: AC_SUBST(GCC).

23 years ago* src/options.c (create_long_option_table): Fix.
Marc Autret [Mon, 15 Oct 2001 19:01:12 +0000 (19:01 +0000)] 
* src/options.c (create_long_option_table): Fix.

23 years agoRemove.
Akim Demaille [Wed, 10 Oct 2001 15:36:26 +0000 (15:36 +0000)] 
Remove.

23 years agoMore ignores.
Akim Demaille [Wed, 10 Oct 2001 15:29:08 +0000 (15:29 +0000)] 
More ignores.

23 years ago* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
Akim Demaille [Wed, 10 Oct 2001 14:58:26 +0000 (14:58 +0000)] 
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.

23 years agoAdjust.
Akim Demaille [Thu, 4 Oct 2001 15:12:55 +0000 (15:12 +0000)] 
Adjust.

23 years agoRemove.
Akim Demaille [Thu, 4 Oct 2001 15:10:56 +0000 (15:10 +0000)] 
Remove.

23 years agoAdjust.
Akim Demaille [Thu, 4 Oct 2001 15:09:51 +0000 (15:09 +0000)] 
Adjust.

23 years ago* src/reader.c (parse_union_decl): Push the caracters in
Akim Demaille [Thu, 4 Oct 2001 15:07:32 +0000 (15:07 +0000)] 
* src/reader.c (parse_union_decl): Push the caracters in
union_obstack, not attrs_obstack.

23 years agoMerge in branch-1_29. after-merge-branch-1_29
Akim Demaille [Thu, 4 Oct 2001 14:55:21 +0000 (14:55 +0000)] 
Merge in branch-1_29.

23 years agoRegen.
Akim Demaille [Thu, 4 Oct 2001 14:49:22 +0000 (14:49 +0000)] 
Regen.

23 years agoRemove from repo.
Akim Demaille [Thu, 4 Oct 2001 13:32:34 +0000 (13:32 +0000)] 
Remove from repo.

23 years agoUpdate.
Akim Demaille [Thu, 4 Oct 2001 13:31:41 +0000 (13:31 +0000)] 
Update.

23 years agoRemove from the repo.
Akim Demaille [Thu, 4 Oct 2001 13:25:06 +0000 (13:25 +0000)] 
Remove from the repo.

23 years agoRemove for the repo.
Akim Demaille [Thu, 4 Oct 2001 13:21:02 +0000 (13:21 +0000)] 
Remove for the repo.

23 years agoRemove.
Akim Demaille [Thu, 4 Oct 2001 13:20:00 +0000 (13:20 +0000)] 
Remove.

23 years agoIgnore .flc pre-merge-of-1-29-branch
Pascal Bart [Tue, 25 Sep 2001 11:37:26 +0000 (11:37 +0000)] 
Ignore .flc

23 years ago* src/output.c (output_master_parser): Don't finish action_obstack.
Pascal Bart [Tue, 25 Sep 2001 11:36:25 +0000 (11:36 +0000)] 
* src/output.c (output_master_parser): Don't finish action_obstack.
(output_parser): Don't care about the muscle action, here.
(prepare): Copy the action_obstack in the action muscle.
(output): Free action_obstack.

23 years ago* src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
Pascal Bart [Sun, 23 Sep 2001 15:33:14 +0000 (15:33 +0000)] 
* src/reader.c (parse_union_decl): Add new obstack union_obstack.  Which
will contain `%union' declaration.
(parse_union_decl): Delete #line directive output.
(parse_union_decl): Substitute /attrs_obstack/union_obstack for all
informations about %union.
(parse_union_decl): Copy the union_obstack in the muscle stype.
* src/bison.simple: Add new #line directive.
Add typdef %%stype YYSTYPE.

23 years ago* src/bison.simple: Add new `#line' directive.
Pascal Bart [Sat, 22 Sep 2001 22:02:34 +0000 (22:02 +0000)] 
* src/bison.simple: Add new `#line' directive.

23 years agoFix line report with input_line
Pascal Bart [Sat, 22 Sep 2001 21:43:05 +0000 (21:43 +0000)] 
Fix line report with input_line

23 years ago* src/bison.simple: New `#line' directive.
Pascal Bart [Sat, 22 Sep 2001 21:30:53 +0000 (21:30 +0000)] 
* src/bison.simple: New `#line' directive.
* src/output.c (output_parser): Support new dynamic muscle input_line.

23 years ago* src/output.c (output_master_parser): New.
Marc Autret [Sat, 22 Sep 2001 12:18:16 +0000 (12:18 +0000)] 
* src/output.c (output_master_parser): New.
(output_parser): Be more re-entrant.

23 years agoUpdate.
Marc Autret [Fri, 21 Sep 2001 16:25:59 +0000 (16:25 +0000)] 
Update.

23 years ago* src/reader.c (copy_definition, parse_union_decl): Update and use
Marc Autret [Fri, 21 Sep 2001 16:25:19 +0000 (16:25 +0000)] 
* src/reader.c (copy_definition, parse_union_decl): Update and use
`linef' muscle.
(copy_action): Likewise.
Use obstack_1grow ().
* src/muscle_tab.c (muscle_init): Add muscle `linef'.

23 years ago* src/options.c (option_table): Adjust.
Marc Autret [Fri, 21 Sep 2001 15:42:26 +0000 (15:42 +0000)] 
* src/options.c (option_table): Adjust.
* src/lex.c (parse_percent_token): Fix.

23 years agoUpdate.
Marc Autret [Fri, 21 Sep 2001 00:09:28 +0000 (00:09 +0000)] 
Update.

23 years agoRegen.
Pascal Bart [Thu, 20 Sep 2001 19:11:28 +0000 (19:11 +0000)] 
Regen.

23 years ago* src/options.c (symtab.h): Include it, need by lex.h.
Pascal Bart [Thu, 20 Sep 2001 18:51:48 +0000 (18:51 +0000)] 
* src/options.c (symtab.h): Include it, need by lex.h.

23 years ago* src/lex.c (parse_percent_token): Change type of variable `tx', which
Pascal Bart [Thu, 20 Sep 2001 18:32:20 +0000 (18:32 +0000)] 
* src/lex.c (parse_percent_token): Change type of variable `tx', which
is now an option_table_struct*.
(option_strcmp): New function option_strcmp.
(parse_percent_token): Call option_strcmp.
* src/getargs.c (xalloc.h, options.h): Include it.
(getargs): Call create_long_option_table.
(getargs): Free longopts at the end of the function.
(shortopts): Move in options.c.
* src/options.c (create_long_option_table): New function.  Convert
information from option_table to option structure.
* src/reader.c (options.h): Include it.
* src/Makefile.am: Adjust.
* src/options.c (option_table): Create from longopts and percent_table.
* src/getargs.c (longopts): Delete.
* src/lex.c (struct percent_table_struct): Delete.
(percent_table): Delete.
(options.h): Include it.
* src/options.c: Create.
* src/options.h: Create.
Declare enum opt_access_e.
Define struct option_table_struct.

23 years ago* doc/bison.texinfo: Adjust terminologies about prologue and epilogue
Marc Autret [Thu, 20 Sep 2001 18:24:27 +0000 (18:24 +0000)] 
* doc/bison.texinfo: Adjust terminologies about prologue and epilogue
sections of Bison.

23 years ago* src/bison.simple: s/%%filename/%%skeleton.
Pascal Bart [Wed, 19 Sep 2001 19:25:02 +0000 (19:25 +0000)] 
* src/bison.simple: s/%%filename/%%skeleton.
* src/muscle_tab.c (getargs.h): Include it.
(muscle_init): Insert new muscle skeleton.

23 years agoUpdate.
Marc Autret [Wed, 19 Sep 2001 15:25:49 +0000 (15:25 +0000)] 
Update.

23 years ago* src/output.c (output_parser): Delete unused variable actions_dumped.
Pascal Bart [Tue, 18 Sep 2001 21:32:53 +0000 (21:32 +0000)] 
* src/output.c (output_parser): Delete unused variable actions_dumped.

23 years ago* src/output.c (output): Delete call to reader_output_yylsp.
Pascal Bart [Fri, 7 Sep 2001 16:50:01 +0000 (16:50 +0000)] 
* src/output.c (output): Delete call to reader_output_yylsp.
* src/reader.c (reader): Likewise.
* src/reader.h: Delete declaration of reader_output_yylsp.

23 years agoUpdate
Marc Autret [Sun, 2 Sep 2001 17:25:48 +0000 (17:25 +0000)] 
Update

23 years agoRegen
Marc Autret [Sun, 2 Sep 2001 16:21:30 +0000 (16:21 +0000)] 
Regen

23 years ago* src/reader.c: Include muscle_tab.h.
Marc Autret [Sun, 2 Sep 2001 15:43:29 +0000 (15:43 +0000)] 
* src/reader.c: Include muscle_tab.h.
(parse_union_decl): Update.
(parse_macro_decl): Rename parse_muscle_decl.
Update to use renamed functions and variable.
(read_declarations, copy_action, read_additionnal_code, : Updated
with correct variables and functions names.
(packsymbols, reader): Likewise.
* src/reader.h (muscle_obstack): Extern declaration update.
* src/output.c: Include muscle_tab.h
In all functions using macro_insert, change by using muscle_insert ().
(macro_obstack): Rename muscle_obstack.
Echo modifications in the whole file.
(MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
(MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
(MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
* src/muscle_tab.h: Update double inclusion macros.
(macro_entry_s): Rename muscle_entry_s.
Update prototypes.
* src/muscle_tab.c: Include muscle_tab.h.
Rename macro_tabble to muscle_table.
(mhash1, mhash2, mcmp): Use muscle_entry.
(macro_init): Rename muscle_init. Update.
(macro_insert): Rename muscle_insert. Update.
(macro_find): Rename muscle_find. Update.
* src/main.c: Include muscle_tab.h.
(main): Call muscle_init ().
* src/Makefile.am (bison_SOURCES): Echo modifications.

23 years agoUpdate
Marc Autret [Sun, 2 Sep 2001 15:43:04 +0000 (15:43 +0000)] 
Update

23 years agoAdd src/muscle_tab.c and src/muscle_tab.h
Marc Autret [Sun, 2 Sep 2001 15:27:27 +0000 (15:27 +0000)] 
Add src/muscle_tab.c and src/muscle_tab.h

23 years agoRemove src/macrotab.c and src/macrotab.h
Marc Autret [Sun, 2 Sep 2001 15:19:49 +0000 (15:19 +0000)] 
Remove src/macrotab.c and src/macrotab.h

23 years agoUpdate
Marc Autret [Sat, 1 Sep 2001 11:38:12 +0000 (11:38 +0000)] 
Update

23 years ago* src/reader.c (copy_guard): Use muscle to specify the `#line'
Pascal Bart [Sat, 1 Sep 2001 10:40:54 +0000 (10:40 +0000)] 
* src/reader.c (copy_guard): Use muscle to specify the `#line'
filename.

23 years agoUpdate
Marc Autret [Sat, 1 Sep 2001 01:23:21 +0000 (01:23 +0000)] 
Update

23 years ago* tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
Marc Autret [Sat, 1 Sep 2001 01:20:54 +0000 (01:20 +0000)] 
* tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
to an explicit value to activate the feature. We do it here.

23 years agoUpdate.
Pascal Bart [Fri, 31 Aug 2001 23:24:55 +0000 (23:24 +0000)] 
Update.

23 years ago* src/output.c (prepare): Delete the `filename' muscule insertion.
Pascal Bart [Fri, 31 Aug 2001 18:51:06 +0000 (18:51 +0000)] 
* src/output.c (prepare): Delete the `filename' muscule insertion.
* src/reader.c (copy_action): Use `filename' muscule with `#line'.
(parse_union_decl): Likewise.
* src/macrotab.c (macro_init): Initialize filename by infile.

23 years agoUpdate
Marc Autret [Fri, 31 Aug 2001 18:46:10 +0000 (18:46 +0000)] 
Update

23 years ago* src/bison.simple (YYLSP_NEEDED): New definition.
Marc Autret [Fri, 31 Aug 2001 18:30:21 +0000 (18:30 +0000)] 
* src/bison.simple (YYLSP_NEEDED): New definition.
* src/output.c (prepare): Add macro insertion of `locations_flag'

23 years ago* src/output.c (prepare): Delete insertion of previous muscles,
Pascal Bart [Fri, 31 Aug 2001 18:22:54 +0000 (18:22 +0000)] 
* src/output.c (prepare): Delete insertion of previous muscles,
and insert the `prefix' muscles.
* src/macrotab.c (macro_init): Likewise.
(macro_init): Initialization prefix directive by `yy'.
* src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
%%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
yylval, yydebug, yyerror, yynerrs and yyparse.
New directive `#define' to substitute yydebug, ... with option
name_prefix.

23 years agoUpdate
Marc Autret [Fri, 31 Aug 2001 17:07:18 +0000 (17:07 +0000)] 
Update

23 years ago* src/main.c (main): Standardize.
Pascal Bart [Fri, 31 Aug 2001 16:56:44 +0000 (16:56 +0000)] 
* src/main.c (main): Standardize.
* src/output.c (output_table_data, output_parser): Likewise.
* src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.

23 years ago* src/reader.c (read_additionnal_code): Rename %%user_code to
Marc Autret [Fri, 31 Aug 2001 16:01:53 +0000 (16:01 +0000)] 
* src/reader.c (read_additionnal_code): Rename %%user_code to
%%epilogue.
* src/output.c (output): Rename %%declarations to %%prologue.
* src/bison.simple: Echo modifications.

23 years agoUpdate
Marc Autret [Fri, 31 Aug 2001 14:40:06 +0000 (14:40 +0000)] 
Update

23 years ago* src/reader.c (readgram): CleanUp.
Marc Autret [Fri, 31 Aug 2001 11:47:08 +0000 (11:47 +0000)] 
* src/reader.c (readgram): CleanUp.
(output_token_defines): Likewise.
(packsymbols): Likewise.
(reader): Likewise.
* src/output.c (output): CPP-out useless code.

23 years ago* src/reader.c (reader): Delete obsolete call to function
Pascal Bart [Fri, 31 Aug 2001 08:00:56 +0000 (08:00 +0000)] 
* src/reader.c (reader): Delete obsolete call to function
output_trailers and output_headers.
* src/output.h: Remove obsolete functions prototypes of output_headers
and output_trailers.