summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tests: minor fixes/simplificationsmaintAkim Demaille2012-03-131-13/+9
| | | | | | | | * tests/local.at (AT_BISON_CHECK_NO_XML): Simplify sed programs, quotation, and default value assignments. Ensure a proper value to the numeric variables. Reported by Lie Yan. http://lists.gnu.org/archive/html/bug-bison/2012-03/msg00000.html
* tests: be robust to quote style.Akim Demaille2012-03-092-1/+13
| | | | | | | | See <http://lists.gnu.org/archive/html/bug-bison/2012-01/msg00120.html>. * src/main.c (main): Define the quoting style we use. * tests/atlocal.in: Use ASCII style quotes during the tests. (cherry picked from commit 39ac121457237a14437ee7d7bae28e368a201a7a)
* maint: update gnulib.Akim Demaille2012-03-092-2/+1
| | | | | * gnulib: update. * src/scan-gram.l: Don't use the (former version of) STREQ.
* tests: be robust to POSIXLY_CORRECT being defined.Akim Demaille2012-03-062-3/+5
| | | | | | | * tests/local.at (AT_BISON_CHECK_NO_XML): Check if POSIXLY_CORRECT is defined, not if it is defined to 1. Reported by Lie Yan. http://lists.gnu.org/archive/html/bug-bison/2012-03/msg00000.html
* doc: fix environment issues.branch-2.5Akim Demaille2012-02-231-35/+35
| | | | | | | | | | | | * doc/bison.texinfo: Do not use @verbatim, in particular when we use @group inside. Use @quotation instead of @display for frequently asked questions, it looks much nicer. (cherry picked from commit 71b52b1342c65a5497f6b3780481ff2deb932a56) Conflicts: doc/bison.texinfo
* regen.Akim Demaille2012-02-232-144/+144
| | | | * src/parse-gram.h, src/parse-gram.c: regen.
* tests: fix regressions.Akim Demaille2012-02-236-4/+6
| | | | | | | | | | | Exit status 63 is documented for version-mismatch. * bootstrap.conf (gnulib_modules): Remove sysexits. * src/system.h (EX_MISMATCH): Define. * src/parse-gram.y (version_check): Use it instead of EX_CONFIG. Missing includes. * tests/calc.at, tests/named-refs.at: Include assert.h. (cherry picked from commit 459a57a90ff6fc8209498b7d5bc6e33d5e633f23)
* glr: fix ambiguity reports.Akim Demaille2012-02-211-0/+117
| | | | | * tests/glr-regression.at (Ambiguity reports): New. (cherry picked from commit a6b2f4fc020fe6e464f4a445a7851825d3d57e4d)
* doc: stylistic improvements.Akim Demaille2012-02-191-18/+102
| | | | | | | | | | * doc/bison.texinfo: Prefer "continue" to empty loop bodies. Add some @group/@end group to avoid poor page breaks. (cherry picked from commit d4fca427636f15eb952974ff04e4fb046428440a) Conflicts: doc/bison.texinfo
* maint: address sc_prohibit_doubled_word.Akim Demaille2012-02-193-12/+11
| | | | | | | | | | | * data/yacc.c, doc/bison.texinfo: Reword to avoid having to disable that check. * cfg.mk: No longer skip this test. (cherry picked from commit 762caaf6393d71d740ad86855a15f5000721d103) Conflicts: data/yacc.c
* maint: address sc_prohibit_always-defined_macros.Akim Demaille2012-02-192-9/+12
| | | | | | | | | | | * cfg.mk: No longer skip it, except where EXIT_SUCCESS is used as a witness for stdlib.h. Skip this test when appropriate. * data/yacc.c: Drop a note about why EXIT_SUCCESS is defined here. Conflicts: cfg.mk
* maint: address sc_bindtextdomain, sc_program_name and sc_prohibit_HAVE_MBRTOWC.Akim Demaille2012-02-197-14/+19
| | | | | | | | | | | | | * bootstrap.conf (gnulib_modules): Require progname. * src/complain.c, src/getargs.c, src/getargs.h, src/main.c: Use it. * cfg.mk (exclude): New. Use it. Skip lib/main.c for bindtextdomain and set_program_name. (cherry picked from commit 4d699f44e65d29b4d49cf68d7a3b4bf856eb5d1b) Conflicts: cfg.mk
* maint: remove stray file.Akim Demaille2012-02-191-292/+0
| | | | | * config.hin: Remove. (cherry picked from commit 222342aa6708814c01a63ff7d568209d3705ff47)
* maint: address some syntax-issues remaining after cherry-picking from master.Akim Demaille2012-02-193-11/+12
| | | | | | * cfg.mk: Skip bison generated files, 2.5 is generating trailing blanks. This is already fixed in master. * tests/conflicts.at, tests/java.at: Fix white space issues.
* regen.Akim Demaille2012-02-192-171/+172
| | | | * src/parse-gram.c, src/parse-gram.h: Regen.
* bitset: fix an incorrect error message.Akim Demaille2012-02-192-1/+2
| | | | | * lib/bitset_stats.c: here. Reported by Stefano Lattarini.
* maint: reenable sc_m4_quote_checkJim Meyering2012-02-191-1/+1
| | | | | | | | | * cfg.mk (local-checks-to-skip): Reenable sc_m4_quote_check. * m4/dmalloc.m4: Add quotes. Conflicts: cfg.mk
* maint: remove trailing empty lines.Akim Demaille2012-02-193-6/+2
| | | | | | | | | | | | * cfg.mk: No longer skip sc_prohibit_empty_lines_at_EOF, except for parse-gram.h (generated). * examples/mfcalc/.gitignore, lib/.gitignore, m4/.gitignore, * po/.gitignore, runtime-po/.gitignore: Remove trailing/leading empty lines. Conflicts: examples/mfcalc/.gitignore
* maint: avoid "magic number exit".Akim Demaille2012-02-1910-13/+20
| | | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): No longer skip it. * bootstrap.conf (gnulib_modules): Add sysexits. * doc/bison.texinfo, etc/bench.pl.in, src/parse-gram.y, * src/system.h, tests/calc.at, tests/named-refs.at: Use assert where appropriate instead of "if (...) exit". Use symbolic exit status elsewhere. Conflicts: doc/bison.texinfo src/parse-gram.y
* maint: fix some syntax-check issues.Akim Demaille2012-02-1913-20/+6
| | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): Remove sc_prohibit_quotearg_without_use, sc_prohibit_strcmp, sc_unmarked_diagnostics, sc_useless_cpp_parens. (sc_unmarked_diagnostics): Skip DJGPP. * data/yacc.c, src/LR0.c, src/closure.c, * src/flex-scanner.h, src/gram.c, src/lalr.c, * src/print-xml.c, src/print.c, src/print_graph.c, * src/reader.c, src/reduce.c, src/tables.c: Don't use parens with cpp's defined. Remove useless includes.
* maint: address a couple of syntax-check errors.Akim Demaille2012-02-196-19/+31
| | | | | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): Remove sc_error_message_period and sc_error_message_uppercase. Address the uncovered issues. * po/POTFILES.in: Add missing files. * src/symtab.c: Remove useless includes. * lib/bitset_stats.c, src/files.c, tests/glr-regression.at: Use conformant error messages. Conflicts: cfg.mk lib/bitset_stats.c tests/glr-regression.at
* maint: gnulib: upgrade.Akim Demaille2012-02-191-0/+0
|
* maint: rely on Automake for parsers.Akim Demaille2012-02-151-6/+6
| | | | | | | | | | | | | * Makefile.am (AM_YFLAGS): Automake looks for "-d" alone. Move other options in here. (BISON): New. (YACC): Use it. (bison_SOURCES): Now that automake can see `-d' in AM_YFLAGS, we can rely on it to compile and ship the parser header files. Based on commit 737406a32c201471699bfa0843d1f432f3ec29ab and commit 3d6ca339083c278d907c9f030f4ba6bc5ecb07f2.
* maint: more authors.Akim Demaille2012-02-141-1/+16
| | | | | | * AUTHORS: here. Suggested by Tys Lefering. (cherry picked from commit bdf66d1db4b82872076197998ddcfafbed306268)
* maint: add license headers.Akim Demaille2012-02-145-0/+81
| | | | | | | | | | | | * examples/calc++/test, examples/variant.yy, AUTHORS, THANKS, * tests/atlocal.in, tests/bison.in: Add license headers. Reported by Tys Lefering. (cherry picked from commit 3272a7256f893399bbbc4b84e6181c71002f3fd8) Conflicts: examples/variant.yy tests/bison.in
* maint: remove obsolete file.Akim Demaille2012-02-141-16/+0
| | | | | | * etc/make-ChangeLogs: Remove (used for rcs to cvs migration!). Reported by Tys Lefering. (cherry picked from commit 3b4d62d5269c50231c9a209dd15820ccba21f5e7)
* use a more consistent quoting style.Akim Demaille2012-02-0813-54/+61
| | | | | | | | | | | | | | | | | | | | | See <http://lists.gnu.org/archive/html/bug-bison/2012-01/msg00120.html>. Use quotearg as often as possible instead of leaving the choice of the quotes to the translators. Use shorter messages. Factor similar messages to a single format, to make localization easier. * src/files.c, src/getargs.c, src/muscle-tab.c, src/reader.c * src/scan-code.l, src/scan-gram.l, src/symtab.c: Use quote() or quotearg_colon() on printf arguments instead of quotes in the format string. * data/bison.m4: Keep sync with the changes in muscle-tab.c. * tests/skeletons.at, tests/input.at, tests/regression.at: Adjust expected messages. (cherry picked from commit 4a9cd8f24abba232b4a07ccdda4c6f109d27acac) Conflicts: src/muscle-tab.c
* maint: remove stray debug code.Akim Demaille2012-01-311-2/+0
| | | | * src/Makefile.am (echo): Remove.
* maint: space changes.Akim Demaille2012-01-311-44/+44
| | | | | * src/Makefile.am: Use 2 leading spaces for variable definition spreading over several lines.
* maint: more silent-rules.Akim Demaille2012-01-314-36/+35
| | | | | | | | | | | | * doc/local.mk, src/local.mk, examples/calc++/Makefile.am: Use $(AM_V_GEN) and $(AM_V_at) where appropriate. (cherry picked from commit f67c0a1c35cbc342e1c1b2201aa563b17c26e3b1) Conflicts: doc/local.mk examples/calc++/Makefile.am src/local.mk
* do not ignore errors like ENOSPC,EIO when writing to stdoutJim Meyering2012-01-314-13/+22
| | | | | | | | | | | | | | | | | | | | | | | | Standard output was never explicitly closed, so we could not detect failure. Thus, bison would ignore the errors of writing to a full file system and getting an I/O error on write, but only for standard output, e.g., for --print-localedir, --print-datadir, --help and some verbose output. Now, "bison --print-datadir > /dev/full" reports the write failure: bison: write error: No space left on device Before, it would exit 0 with no diagnostic, implying success. This is not an issue for "--output=-" or the other FILE-accepting command-line options, because unlike most other GNU programs, an output file argument of "-" is treated as the literal "./-", rather than standard output. * bootstrap.conf (gnulib_modules): Add closeout. * src/main.c: Include "closeout.h". Use atexit to ensure we close stdout. * .gitignore: Ignore new files pulled in via gnulib-tool. (cherry picked from commit acb5895680611f8beb497b41694d9686f2932c50) Conflicts: m4/.gitignore
* tests: fix expected output.Akim Demaille2012-01-261-1/+0
| | | | | * tests/actions.at (YYBACKUP): here. (cherry picked from commit 888b6ddfe44ee87ddc6bd77b960dde820c53f105)
* yacc: fix YYBACKUP.Akim Demaille2012-01-264-12/+81
| | | | | | | | | | | | | | | | | Reported by David Kastrup: https://lists.gnu.org/archive/html/bug-bison/2011-10/msg00002.html. * data/yacc.c (YYBACKUP): Accept rhs size. Restore the proper state value. * TODO (YYBACKUP): Make it... * tests/actions.at: a new test case. * NEWS, THANKS: Update. (cherry picked from commit d115aad9112fb4e2fe1b268c9db7390732d39539) Conflicts: TODO data/yacc.c
* maint: update TODO.Akim Demaille2012-01-261-25/+0
| | | | | * TODO (Labeling the symbols): Remove, it's done ("Name references"). (cherry picked from commit 2c7f50be6247b4a03bdb27936ea6185cb6a7443c)
* maint: update THANKS.Akim Demaille2012-01-261-1/+1
| | | | | * THANKS: Update Tys's address, on his request. (cherry picked from commit 93ebddb11f3aca5aeb7d2337c6b54a652f08384f)
* maint: fix --gcc-warnings support.Akim Demaille2012-01-261-5/+5
| | | | | | | | | | * configure.ac: Use enable_gcc_warnings instead of enableval, which is valid only with AC_ARG_ENABLE. (cherry picked from commit 1890a2a816dab86c23cc1d0af8fac3986335deb7) Conflicts: configure.ac
* maint: silent-rules.Akim Demaille2012-01-261-1/+2
| | | | | | * configure.ac: Ask for silent-rules support. Enable it by default. (cherry picked from commit da1eb15bc9f2147359f5a4d9826303a53e08b447)
* maint: remove trailing blanks.Akim Demaille2012-01-261-1/+1
| | | | * src/scan-code.l: Here.
* tests: port to Solaris 10 'diff -u'Paul Eggert2012-01-251-2/+2
| | | | | | | | * tests/regression.at (parse-gram.y: LALR = IELR): Port to Solaris 10, where "diff -u X X" outputs "No differences encountered" instead of outputting nothing. Reported by Tomohiro Suzuki in <http://lists.gnu.org/archive/html/bug-bison/2012-01/msg00101.html>. (cherry picked from commit 071ca141ec7987a5eca782227ce70db434a206ab)
* build: avoid possibly-replaced fprintf in liby-source, yyerror.cJim Meyering2012-01-253-3/+6
| | | | | | | | | | | | * lib/yyerror.c (yyerror): Use fputs and fputc rather than fprintf with a mere "%s\n" format. Always return 0 now, on the assumption that the return value was never used anyway. Don't include <config.h> after all. This avoids a problem reported by Thiru Ramakrishnan in http://lists.gnu.org/archive/html/help-bison/2011-11/msg00000.html * cfg.mk: Exempt lib/yyerror.c from the sc_require_config_h_first test. * THANKS: Update. (cherry picked from commit fb9eea88856d73a5f25295a52f6d4df7fabc565b)
* maint: generate ChangeLog from git logJim Meyering2012-01-248-9/+31
| | | | | | | | | | | | | | | | | | | | | * Makefile.am (gen-ChangeLog): New rule. (dist-hook): Depend on it. (EXTRA_DIST): Distribute the two ChangeLog-* files. * bootstrap.conf (gnulib_modules): Add gitlog-to-changelog. (bootstrap_post_import_hook): Ensure that ChangeLog exists. * build-aux/git-log-fix: New file. * ChangeLog-2012: Renamed ... * ChangeLog: ... from this. * ChangeLog-1998: Renamed ... * OChangeLog: ...from this * .gitignore: Add ChangeLog. (cherry picked from commit 5ef4a3c71cfd6c07e71462944281c284780312c1) Conflicts: Makefile.am bootstrap.conf build-aux/.gitignore
* change more quotes in source, and adjust tests to matchJim Meyering2012-01-2410-86/+86
| | | | | | | | | | | | | | | | | | | | | | | | Run this command to change each `%s' to '%s' in source directories: git grep -l '`%s'\' src djgpp data \ |xargs perl -pi -e '$q="'\''";s/`%s$q/$q%s$q/g' * data/bison.m4: Affected per the above. * djgpp/subpipe.c: Likewise. * src/files.c: Likewise. * src/getargs.c: Likewise. * src/muscle-tab.c: Likewise. * src/reader.c: Likewise. * tests/glr-regression.at: Adjust to match. * tests/input.at: Likewise. * tests/push.at: Likewise. * tests/skeletons.at: Likewise. (cherry picked from commit 4aa9d1ff9ca9b838fe02a9bfe5ae4b0f935e5451) Conflicts: src/getargs.c src/muscle-tab.c src/reader.c tests/input.at
* quote consistently and make tests pass with new quoting from gnulibJim Meyering2012-01-2310-182/+207
| | | | | | | | | | | | | | | | | | | | | | | | | Updating to gnulib pulled in new quote and quotarg modules, by which quoting is now done like 'this' rather than `this'. That change induces many "make check" test failures. This change adapts code and tests so that "make check" passes once again. * src/scan-code.l: Quote like 'this', not like `this'. * src/scan-gram.l: Likewise. * src/symtab.c: Likewise. * tests/actions.at: Adjust tests to match. * tests/input.at: Likewise. * tests/named-refs.at: Likewise. * tests/output.at: Likewise. * tests/regression.at: Likewise. * lib/.gitignore: Regenerate. * m4/.gitignore: Likewise. (cherry picked from commit ae93e4e4b8e78396a7707de3dcdd47aca7a46dec) Conflicts: src/scan-code.l src/scan-gram.l src/symtab.c tests/output.at
* build: update gnulib and autoconf submodules to latestJim Meyering2012-01-232-0/+0
| | | | (cherry picked from commit 728415f885e5cb8e518c8576fa6e1f541e384130)
* build: manually update bootstrap from gnulib, and adaptJim Meyering2012-01-233-191/+133
| | | | | | | | | | | | | | | | | | | Updating to the latest bootstrap from gnulib involves more of a change than usual, and updating to the latest gnulib would involve its own set of challenges with the upcoming quoting changes, so we update bootstrap manually and separately. * bootstrap: Update from gnulib. * lib/Makefile.am: Initialize more variables to empty, so that gnulib.mk can append to them with "+=". * bootstrap.conf (gnulib_mk_hook): Remove. No longer honored. (gnulib_tool_option_extras): Generate gnulib.mk. (cherry picked from commit 85ad742d4e94345d5ac07755f6722344cfd49603) Conflicts: Makefile.am bootstrap.conf etc/prefix-gnulib-mk
* maint: include <config.h> firstJim Meyering2012-01-231-0/+1
| | | | | | | * cfg.mk (exclude_file_name_regexp--sc_require_config_h_first): Exempt data/glr.c and data/yacc.c from the include-config.h-first requirement. (cherry picked from commit 77f114dd6e50ab39e0962f39ad9c2f2e1d347acf)
* build: include <config.h> from lib/yyerror.cJim Meyering2012-01-231-0/+1
| | | | | * lib/yyerror.c: Include <config.h>. (cherry picked from commit cf33c228e08142e3ef715105a191db24ec980ca8)
* maint: list djgpp/subpipe.c in po/POTFILES.inJim Meyering2012-01-231-0/+1
| | | | | * po/POTFILES.in: Add djgpp/subpipe.c. (cherry picked from commit e7f5dbf82d8b8110a8982d31d034755b5d072fdc)
* maint: placate the space-TAB syntax-checkJim Meyering2012-01-232-2/+6
| | | | | | | | * cfg.mk (exclude_file_name_regexp--sc_space_tab): Exempt tests/input.at and tests/c++.at, since they appear to use SP-TAB sequences deliberately. * OChangeLog: Remove space-before-TAB. (cherry picked from commit aebc4303615a4431acaa54e42380feb6b63e7f12)
* doc: correct typo: s/can not/cannot/Jim Meyering2012-01-231-1/+1
| | | | | | | | | | * doc/bison.texinfo (Bug Reports): s/can not/cannot/ And remove trailing blanks. (cherry picked from commit 411614fac478a60cf942dc5e2011a08178156d30) Conflicts: doc/bison.texinfo