Commit Graph

  • 2aec1bc1de * src/conflicts.c (finalize_conflicts): Rename as... (free_conflicts): this. Akim Demaille 2001-09-22 18:13:24 +00:00
  • c6e1f6235a * src/gram.c (gram_free): Rename back as... (dummy): this. (output_token_translations): Free `token_translations'. * src/symtab.c (free_symtab): Free the tag field. Akim Demaille 2001-09-22 17:57:59 +00:00
  • ab6fbb02ad Remove `translations' as it is always set to true. * src/gram.h: Adjust. * src/reader.c (packsymbols, parse_token_decl): Adjust * src/print.c (print_grammar): Adjust. * src/output.c (output_token_translations): Adjust. * src/lex.c (lex): Adjust. * src/gram.c: Be sure the set pointers to NULL. (dummy): Rename as... (gram_free): this. Akim Demaille 2001-09-22 17:43:26 +00:00
  • f2632e420f * configure.in: Invoke AM_LIB_DMALLOC. * src/system.h: Use dmalloc. * src/LR0.c: Be sure to have pointers initialized to NULL. (allocate_itemsets): Allocate kernel_items only if needed. Akim Demaille 2001-09-22 17:19:03 +00:00
  • 19f01e885f * configure.in: Bump to 1.29b. * tests/Makefile.am (DISTCLEANFILES): Add package.m4. * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't need xmalloc.c in calc.y. From Pascal Bart. Akim Demaille 2001-09-22 16:56:37 +00:00
  • 6792619fa8 . Akim Demaille 2001-09-22 16:23:53 +00:00
  • 645ff8cdee Regen. v1.29a Akim Demaille 2001-09-22 16:13:59 +00:00
  • 652def8074 * src/output.c (output_master_parser): New. (output_parser): Be more re-entrant. Marc Autret 2001-09-22 12:18:16 +00:00
  • a726df0b44 * configure.in (ALL_LINGUAS): Add "tr". * po/.cvsignore: Ignore GMO files. Akim Demaille 2001-09-21 16:52:42 +00:00
  • ce209526ed * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend upon package.m4. Akim Demaille 2001-09-21 16:41:46 +00:00
  • b94bf14aac More ignores. Akim Demaille 2001-09-21 16:35:45 +00:00
  • 2a4426474d Version 1.29a. * Makefile.maint, config/config.guess, config/config.sub, * config/missing: Update from masters. Akim Demaille 2001-09-21 16:28:06 +00:00
  • 209215672e Update. Marc Autret 2001-09-21 16:25:59 +00:00
  • 25b222faf6 * 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'. Marc Autret 2001-09-21 16:25:19 +00:00
  • 9022c575cc Update. Marc Autret 2001-09-21 15:45:54 +00:00
  • 6bc35ae56a * src/options.c (option_table): Adjust. * src/lex.c (parse_percent_token): Fix. Marc Autret 2001-09-21 15:42:26 +00:00
  • dae9263b7b Adjust. Akim Demaille 2001-09-21 14:45:03 +00:00
  • cdd11a9322 * tests/Makefile.am (package.m4): Move to... ($(srcdir)/$(TESTSUITE)): here. Akim Demaille 2001-09-21 14:44:22 +00:00
  • 31b53af2fa Update. Marc Autret 2001-09-21 00:09:28 +00:00
  • a474de9b9a Regen. Pascal Bart 2001-09-20 19:11:28 +00:00
  • c0629aa10f * src/options.c (symtab.h): Include it, need by lex.h. Pascal Bart 2001-09-20 18:51:48 +00:00
  • 82b6d266fd * 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. Pascal Bart 2001-09-20 18:32:20 +00:00
  • 75f5aaea27 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue sections of Bison. Marc Autret 2001-09-20 18:24:27 +00:00
  • da7ab9b7b0 * src/complain.c: No longer try to be standalone: use system.h. Don't assume __STDC__ is defined to 1. Just test if it is defined. * src/complain.h: Likewise. * src/reduce.c (useless_nonterminals, inaccessable_symbols): Remove the unused variable `n'. From Albert Chin-A-Young. Akim Demaille 2001-09-20 17:08:42 +00:00
  • 0899b02570 Regen. Akim Demaille 2001-09-20 17:08:06 +00:00
  • f508cb0ac9 * src/bison.simple: s/%%filename/%%skeleton. * src/muscle_tab.c (getargs.h): Include it. (muscle_init): Insert new muscle skeleton. Pascal Bart 2001-09-19 19:25:02 +00:00
  • f3c383d683 Update. Marc Autret 2001-09-19 15:25:49 +00:00
  • 0f23d6d25b * doc/bison.1: Update. * doc/bison.texinfo (Bison Options): Update --defines and --graph descriptions. (Option Cross Key): Update. Add --graph. Marc Autret 2001-09-19 13:09:32 +00:00
  • 13105fc158 * src/output.c (output_parser): Delete unused variable actions_dumped. Pascal Bart 2001-09-18 21:32:53 +00:00
  • 47cef7a2ff * tests/regression.at: New test (comment in %union). Marc Autret 2001-09-18 15:18:26 +00:00
  • 7972022dac * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment do that. Reported by Keith Browne. Marc Autret 2001-09-18 11:37:11 +00:00
  • ea4f4c4c1b * tests/output.at: Add tests for --defines and --graph. Marc Autret 2001-09-18 11:14:21 +00:00
  • d97207ad77 * tests/output.at: Removes tests of %{header,src}_extension features. Marc Autret 2001-09-18 11:04:29 +00:00
  • 3068221b53 * tests/Makefile.am (package.m4): New. * tests/calc.at (_AT_CHECK_CALC): Just run calc input'. (_AT_CHECK_CALC_ERROR): Likewise. Factor the , ' part of verbose error messages. Akim Demaille 2001-09-18 10:51:36 +00:00
  • 6f0d1fd89d Regen. Akim Demaille 2001-09-18 10:44:11 +00:00
  • 6526f6dbf7 * src/getargs.c (longopts): Declare --defines and --graph as options with optional arguments. * src/files.h: Add extern declarations. * src/files.c (spec_graph_file, spec_defines_file): New. (output_files): Update. Remove CPP-outed code. Marc Autret 2001-09-17 23:00:01 +00:00
  • 817e461c23 Update. Marc Autret 2001-09-17 22:21:16 +00:00
  • c4e3dae3ac Turn off %{source,header}_extension feature. * src/files.c (compute_exts_from_gf): Update. (compute_exts_from_src): Update. (output_files): CPP-out useless code. * src/files.h: Remove {header,source}_extension extern declarations. * src/reader.c (parse_dquoted_param): CPP-out. (parse_header_extension_decl): Remove. (parse_source_extension_decl): Remove. (read_declarations): Remove cases tok_{hdrext,srcext}. * src/lex.c (percent_table): Remove {header,source}_extension entries. * src/lex.h (token_t): Remove tok_hdrext and tok_srcext. Marc Autret 2001-09-17 22:20:08 +00:00
  • 8cedc168fa * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT): (AT_CHECK_BISON_PERCENT_FLAGS): Merge into... (AT_CHECK_OUTPUT): this. Merely check ls' exit status, its output is useless. Akim Demaille 2001-09-10 09:59:39 +00:00
  • 3b14996787 * tests/calc.at: Use m4_match. (_AT_DATA_CALC_Y): Check yyin != NULL', not stdin != NULL'. Akim Demaille 2001-09-10 09:31:50 +00:00
  • 041cad1677 * src/vcg.h (graph_s): color, textcolor, bordercolor are now enum color_e. * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm to normal'. * src/reader.c (parse_token_decl): Initialize token with tok_eof. * src/lex.h: Adjust prototype. (token_t): Add tok_undef'. * src/lex.c (struct percent_table_struct): Retval is now a token_t. (parse_percent_token): Now returns token_t. Add default statement in switch. (lex): Separate `c' as an input variable, from the token_t result part. (unlexed): Is a token_t. Akim Demaille 2001-09-10 08:33:25 +00:00
  • 31478b7ab7 * configure.in: Bump to 1.29a. Akim Demaille 2001-09-10 08:23:56 +00:00
  • b0c4483ed2 * src/output.c (output): Delete call to reader_output_yylsp. * src/reader.c (reader): Likewise. * src/reader.h: Delete declaration of reader_output_yylsp. Pascal Bart 2001-09-07 16:50:01 +00:00
  • e957bbb7d4 . Akim Demaille 2001-09-07 12:56:52 +00:00
  • b5f513ef2c In config/ now. Akim Demaille 2001-09-07 12:34:16 +00:00
  • 3afa674b1d Version 1.29. v1.29 Akim Demaille 2001-09-07 12:12:30 +00:00
  • 714720fcfe Update Marc Autret 2001-09-02 17:25:48 +00:00
  • 4766a52862 Regen Marc Autret 2001-09-02 16:21:30 +00:00
  • 11d82f03b4 * 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. Marc Autret 2001-09-02 15:43:29 +00:00
  • a0ed1cb86a Update Marc Autret 2001-09-02 15:43:04 +00:00
  • f753cd6292 Add src/muscle_tab.c and src/muscle_tab.h Marc Autret 2001-09-02 15:27:27 +00:00
  • 93a37297e6 Remove src/macrotab.c and src/macrotab.h Marc Autret 2001-09-02 15:19:49 +00:00
  • 4134cae3c5 Update Marc Autret 2001-09-01 11:38:12 +00:00
  • 682d48cd09 * src/reader.c (copy_guard): Use muscle to specify the `#line' filename. Pascal Bart 2001-09-01 10:40:54 +00:00
  • 53cdf751a3 Update Marc Autret 2001-09-01 01:23:21 +00:00
  • 087c8fdae3 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set to an explicit value to activate the feature. We do it here. Marc Autret 2001-09-01 01:20:54 +00:00
  • 7a999fcb7b Update. Pascal Bart 2001-08-31 23:24:55 +00:00
  • dda680cb80 * 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. Pascal Bart 2001-08-31 18:51:06 +00:00
  • 6b7d911c5d Update Marc Autret 2001-08-31 18:46:10 +00:00
  • 9e644e648d * src/bison.simple (YYLSP_NEEDED): New definition. * src/output.c (prepare): Add macro insertion of `locations_flag' Marc Autret 2001-08-31 18:30:21 +00:00
  • 17da6427fe * 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. Pascal Bart 2001-08-31 18:22:54 +00:00
  • 01ed3db59b Update Marc Autret 2001-08-31 17:07:18 +00:00
  • e8cb70b957 * src/main.c (main): Standardize. * src/output.c (output_table_data, output_parser): Likewise. * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise. Pascal Bart 2001-08-31 16:56:44 +00:00
  • 63c2d5de0f * src/reader.c (read_additionnal_code): Rename %%user_code to %%epilogue. * src/output.c (output): Rename %%declarations to %%prologue. * src/bison.simple: Echo modifications. Marc Autret 2001-08-31 16:01:53 +00:00
  • 675bc4e954 Update Marc Autret 2001-08-31 14:40:06 +00:00
  • ac481f3b08 Newer translations. Akim Demaille 2001-08-31 14:11:48 +00:00
  • d8cb51834b * src/reader.c (readgram): CleanUp. (output_token_defines): Likewise. (packsymbols): Likewise. (reader): Likewise. * src/output.c (output): CPP-out useless code. Marc Autret 2001-08-31 11:47:08 +00:00
  • 6c686258e3 * 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. Pascal Bart 2001-08-31 08:00:56 +00:00
  • c111e171cd Update Marc Autret 2001-08-31 00:26:05 +00:00
  • 010c94a243 Update Marc Autret 2001-08-31 00:08:57 +00:00
  • 8f451ef727 * src/main.c: Include macrotab.h. * src/macrotab.h (macro_entry_s): Constify fields. Adjust functions prototypes. * src/macrotab.c (macro_insert): Constify key and value. (macro_find): Constify key. (macro_insert): Include 'xalloc.h' (macro_insert): Use XMALLOC. (macro_find): Constify return value. * src/output.c (output_table_data): Rename table to table_data. (output_parser): Constify macro_key, macro_value. Pascal Bart 2001-08-30 18:51:56 +00:00
  • d37a7c45b3 Regen. and fix typo in configure.in. Akim Demaille 2001-08-30 15:41:41 +00:00
  • 5086915ebd file bison was initially added on branch bison-1_29-branch. Akim Demaille 2001-08-30 15:36:37 +00:00
  • d63e24071f * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove. * m4/atconfig.m4: Remove. * tests/testsuite.at, tests/atlocal.in, tests/output.at, * tests/bison: New. * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER, m4_if, m4_patsubst, and m4_regexp. * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an `input' file instead of echo. Akim Demaille 2001-08-30 15:36:37 +00:00
  • 416bd7a9f3 New file Marc Autret 2001-08-30 00:44:59 +00:00
  • 997b6fd0c7 Adjust Marc Autret 2001-08-30 00:44:14 +00:00
  • 2ba3b73c58 * src/reader.c (parse_skel_decl): New. (read_declarations): Add case tok_skel', call parse_skel_decl (). * src/lex.h (token_t): New token tok_skel'. * src/lex.c (percent_table): Add skeleton option entry. Standardize. Marc Autret 2001-08-30 00:41:37 +00:00
  • ff48177d25 * src/bison.simple: Add %%user_code directive at the end. * src/reader.c (read_additionnal_code): New. (reader): Use it. * src/output.c (output_program): Remove. (output): Update. Marc Autret 2001-08-29 14:17:00 +00:00
  • afd36419df Bump to 1.28e. Akim Demaille 2001-08-29 12:54:26 +00:00
  • 6918b5fcc9 Version 1.28d. v1.28d Akim Demaille 2001-08-29 12:32:10 +00:00
  • 38e616f0f5 * src/bison.simple (yyparse): Don't take the address of an item before the start of an array, as that doesn't conform to the C Standard. Robert Anisko 2001-08-29 12:21:38 +00:00
  • db433e9db8 * doc/bison.texinfo (Location Tracking Calc): New node. Akim Demaille 2001-08-29 12:16:04 +00:00
  • 870f12c270 * src/output.c (output): Do not define const, as this now causes more problems than it cures. Robert Anisko 2001-08-29 12:13:03 +00:00
  • e0a53a7f4a More ignores. Akim Demaille 2001-08-29 12:08:41 +00:00
  • 27c1ceb8da * doc/bison.texinfo: Modernize @node' and @top' use: just name the nodes. Be sure to tag the `detailmenu'. Akim Demaille 2001-08-29 12:07:46 +00:00
  • 8f5d3a2dd5 Update. Akim Demaille 2001-08-29 10:46:39 +00:00
  • adfd774c80 * Makefile.maint (do-po-update): Wget refuses to overwrite files: download in a tmp dir. Akim Demaille 2001-08-29 10:46:17 +00:00
  • 4e5caae2c6 Adjust Marc Autret 2001-08-28 20:55:58 +00:00
  • b33160bf45 * src/output.c (output_actions): Clean up. * src/reader.c (reader): Clean up, CPP-out useless code. Marc Autret 2001-08-28 20:48:17 +00:00
  • 535c0e75d1 * src/output.c (output): Copy attrs_obstack in the '%%definitions' directive. * src/bison.simple: Add `%%definitions'. Pascal Bart 2001-08-28 18:36:57 +00:00
  • d1a2daf76a * src/output.c (output_definitions): New function, which copies attrs_obstack in the '%%definitions' directive. * src/bison.simple: Add `%%definitions'. Pascal Bart 2001-08-28 18:35:33 +00:00
  • 2b763dfe15 * config/depcomp: New file. Marc Autret 2001-08-28 17:53:07 +00:00
  • 057194c61e * config/depcomp: New file. Marc Autret 2001-08-28 16:25:45 +00:00
  • a6f622cd50 * doc/bison.1 (mandoc): Adjust. From Juan Manuel Guerrero. Marc Autret 2001-08-28 13:58:27 +00:00
  • 2b8ce46775 * src/print_graph.c (print_state): Fix. Marc Autret 2001-08-28 11:33:36 +00:00
  • 19553c4e06 * src/vcg.h (classname_s, infoname_s, node_s): Constify the char * members. Echo modifications to the functions prototypes. * src/vcg.c (add_classname, add_infoname): Adjust arguments. Marc Autret 2001-08-27 22:16:23 +00:00
  • f1a87ef6ad * src/bison.simple (yyparse): Don't take the address of an item before the start of an array, as that doesn't conform to the C Standard. Paul Eggert 2001-08-27 17:28:28 +00:00
  • cbd8990652 (yyparse): Don't take the address of an item before the start of an array, as that doesn't conform to the C Standard. Paul Eggert 2001-08-27 17:24:34 +00:00
  • 82e236e2d6 * src/output.c (output): Remove the initialization of the macro obstack. It was done too late here. Robert Anisko 2001-08-27 14:55:39 +00:00
  • b0cfa28a12 * src/output.c (output_parser): Fix. Store single '%' characters in the output obstack instead of throwing them away. Robert Anisko 2001-08-27 14:34:02 +00:00