summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* gnulib: updateAkim Demaille2018-10-051-0/+3
|
* gnulib: move timevar to itAkim Demaille2018-09-304-594/+22
| | | | | | | | * lib/timevar.c, lib/timevar.h, m4/timevar.m4: Remove. * gnulib: Update. * configure.ac: Adjust. * lib/timevar.def: Use lower case for the timevvars. Adjust dependencies.
* timevar: don't declare getrusage if we don't use itAkim Demaille2018-09-221-11/+9
| | | | | | | | | This fails on MinGW. Reported by Simon Sobisch. http://lists.gnu.org/archive/html/bug-bison/2018-09/msg00058.html * lib/timevar.c: Don't provide default prototypes for functions we don't use.
* timevar: get rid of a useless macroAkim Demaille2018-09-222-11/+10
| | | | | | * lib/timevar.h (timevar_report): Rename as... (timevar_enabled): this. * lib/timevar.c (TIMEVAR_ENABLE): Remove.
* timevar: introduce and use get_current_timeAkim Demaille2018-09-221-19/+18
| | | | | | * lib/timevar.c: here. Remove useless prototypes. (timevar_accumulate): Be const correct.
* timevar: rename get_time as set_to_current_timeAkim Demaille2018-09-221-9/+9
| | | | * lib/timevar.c: here.
* timevar: reduce scopesAkim Demaille2018-09-221-19/+17
| | | | * lib/timevar.c: here.
* timevar: document in the header, not in the implementationAkim Demaille2018-09-222-29/+34
| | | | | * lib/timevar.c: Move documentation from here... * lib/timevar.h: to there.
* timevar: remove useless 'extern' for prototypesAkim Demaille2018-09-222-10/+10
| | | | * lib/timevar.h, lib/timevar.c: here.
* timevar: rename init_timevar as timevar_initAkim Demaille2018-09-222-2/+2
| | | | | * lib/timevar.h, lib/timevar.c: here. * src/main.c: Adjust.
* timevar: we don't care about backward compatibilityAkim Demaille2018-09-222-29/+0
| | | | * lib/timevar.h, lib/timevar.c (get_run_time, print_time): Remove.
* timevar: prefer #elifAkim Demaille2018-09-221-37/+23
| | | | | | * lib/timevar.c: Use #if/#elif to be clearer about mutually exclusive cases. Indent CPP nested directives.
* timevar: assume ANSI CAkim Demaille2018-09-221-22/+12
| | | | | | | Suggested by Bruno Haible. https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00102.html * lib/timevar.c: Wow... This was still KnR C!
* timevar: remove remains of GCCAkim Demaille2018-09-222-37/+8
| | | | | * lib/timevar.h, lib/timevar.c: Rename the header guard. Get rid of parts meant for GCC only.
* style: lib: remove useless reference to 'int' in integral typesAkim Demaille2018-08-1412-82/+82
| | | | | | | | * lib/abitset.c, lib/bbitset.h, lib/bitset.c, lib/bitset.h, * lib/bitset_stats.c, lib/bitsetv-print.c, lib/bitsetv.c, * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/timevar.c, * lib/vbitset.c: Prefer 'unsigned' to 'unsigned int'. Likewise for long and short.
* gnulib: updateAkim Demaille2018-06-181-3/+0
| | | | | | | | | Fixes the `make install-pdf` problem reported by Hans Ã…berg in http://lists.gnu.org/archive/html/bug-bison/2018-06/msg00000.html that had already been fixed by Joel E. Denny in http://lists.gnu.org/archive/html/bug-bison/2012-04/msg00011.html Final fix in http://lists.gnu.org/archive/html/bug-gnulib/2018-06/msg00019.html
* Update copyright yearsAkim Demaille2018-05-1226-30/+45
| | | | Run `make update-copyright`.
* gnulib: updateAkim Demaille2018-05-081-2/+2
| | | | | | * README-hacking: Commit before bootstrapping. * bootstrap.conf: gnulib_mk is no longer defined by bootstrap. * bootstrap, gnulib, lib/.gitignore, m4/.gitignore: Update/regen.
* Adjust to recent Gnulib changesPaul Eggert2017-09-161-26/+28
|
* gnulib: strtoul is considered obsolete and now uselessAkim Demaille2015-01-151-2/+0
| | | | * bootstrap.conf: here.
* package: bump to 2015Akim Demaille2015-01-0426-26/+26
| | | | | | Which also requires: * gnulib: Update.
* gnulib: updateAkim Demaille2014-12-291-0/+2
|
* package: bump to 2014Akim Demaille2014-02-0326-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * AUTHORS, ChangeLog-2012, Makefile.am, NEWS, PACKAGING, README, * README-alpha, README-hacking, THANKS, TODO, bootstrap.conf, * build-aux/darwin11.4.0.valgrind, build-aux/local.mk, * build-aux/update-b4-copyright, * build-aux/update-package-copyright-year, cfg.mk, configure.ac, * data/README, data/bison.m4, data/c++-skel.m4, data/c++.m4, * data/c-like.m4, data/c-skel.m4, data/c.m4, data/glr.c, data/glr.cc, * data/java-skel.m4, data/java.m4, data/lalr1.cc, data/lalr1.java, * data/local.mk, data/location.cc, data/stack.hh, data/variant.hh, * data/xslt/bison.xsl, data/xslt/xml2dot.xsl, data/xslt/xml2text.xsl, * data/xslt/xml2xhtml.xsl, data/yacc.c, djgpp/Makefile.maint, * djgpp/README.in, djgpp/config.bat, djgpp/config.sed, * djgpp/config.site, djgpp/config_h.sed, djgpp/djunpack.bat, * djgpp/local.mk, djgpp/subpipe.c, djgpp/subpipe.h, * djgpp/testsuite.sed, doc/bison.texi, doc/local.mk, doc/refcard.tex, * etc/README, etc/bench.pl.in, etc/local.mk, * examples/calc++/calc++.test, examples/calc++/local.mk, * examples/extexi, examples/local.mk, examples/mfcalc/local.mk, * examples/mfcalc/mfcalc.test, examples/rpcalc/local.mk, * examples/rpcalc/rpcalc.test, examples/test, examples/variant.yy, * lib/abitset.c, lib/abitset.h, lib/bbitset.h, lib/bitset.c, * lib/bitset.h, lib/bitset_stats.c, lib/bitset_stats.h, * lib/bitsetv-print.c, lib/bitsetv-print.h, lib/bitsetv.c, * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/get-errno.c, * lib/get-errno.h, lib/lbitset.c, lib/lbitset.h, lib/libiberty.h, * lib/local.mk, lib/main.c, lib/timevar.c, lib/timevar.def, * lib/timevar.h, lib/vbitset.c, lib/vbitset.h, lib/yyerror.c, * m4/bison-i18n.m4, m4/c-working.m4, m4/cxx.m4, m4/flex.m4, * m4/timevar.m4, src/AnnotationList.c, src/AnnotationList.h, * src/InadequacyList.c, src/InadequacyList.h, src/LR0.c, src/LR0.h, * src/Sbitset.c, src/Sbitset.h, src/assoc.c, src/assoc.h, * src/closure.c, src/closure.h, src/complain.c, src/complain.h, * src/conflicts.c, src/conflicts.h, src/derives.c, src/derives.h, * src/files.c, src/files.h, src/flex-scanner.h, src/getargs.c, * src/getargs.h, src/gram.c, src/gram.h, src/graphviz.c, * src/graphviz.h, src/ielr.c, src/ielr.h, src/lalr.c, src/lalr.h, * src/local.mk, src/location.c, src/location.h, src/main.c, * src/muscle-tab.c, src/muscle-tab.h, src/named-ref.c, * src/named-ref.h, src/nullable.c, src/nullable.h, src/output.c, * src/output.h, src/parse-gram.c, src/parse-gram.y, src/print-xml.c, * src/print-xml.h, src/print.c, src/print.h, src/print_graph.c, * src/print_graph.h, src/reader.c, src/reader.h, src/reduce.c, * src/reduce.h, src/relation.c, src/relation.h, src/scan-code.h, * src/scan-code.l, src/scan-gram.h, src/scan-gram.l, src/scan-skel.h, * src/scan-skel.l, src/state.c, src/state.h, src/symlist.c, * src/symlist.h, src/symtab.c, src/symtab.h, src/system.h, * src/tables.c, src/tables.h, src/uniqstr.c, src/uniqstr.h, * tests/actions.at, tests/atlocal.in, tests/bison.in, tests/c++.at, * tests/calc.at, tests/conflicts.at, tests/cxx-type.at, * tests/existing.at, tests/glr-regression.at, tests/headers.at, * tests/input.at, tests/java.at, tests/javapush.at, tests/local.at, * tests/local.mk, tests/named-refs.at, tests/output.at, tests/push.at, * tests/reduce.at, tests/regression.at, tests/sets.at, * tests/skeletons.at, tests/synclines.at, tests/testsuite.at, * tests/torture.at, tests/types.at: here.
* gnulib: updateAkim Demaille2013-12-051-0/+2
| | | | * gnulib: here.
* install: do not install yacc.1 when --disable-yaccAkim Demaille2013-10-221-1/+3
| | | | | | | * configure.ac (ENABLE_YACC): New conditional. (YACC_SCRIPT, YACC_LIBRARY): Remove. * lib/local.mk, src/local.mk: Use the former instead of the latter. * doc/local.mk: Use ENABLE_YACC to avoid installing yacc.1.
* style: no longer use backquotesAkim Demaille2013-02-182-2/+2
| | | | | | | | * tests/actions.at, tests/atlocal.in, tests/c++.at, tests/calc.at, * tests/conflicts.at, tests/existing.at, tests/glr-regression.at, * tests/input.at, tests/java.at, tests/local.at, tests/sets.at, * tests/synclines.at, doc/bison.texi, lib/libiberty.h, lib/timevar.h: Use single quotes.
* maint: update copyright yearsAkim Demaille2013-01-1226-26/+27
| | | | | Suggested by Stefano Lattarini. Run "make update-copyright".
* regenAkim Demaille2013-01-091-1/+0
|
* carets: properly display when no line feed is presentTheophile Ranquet2012-12-271-2/+0
| | | | | | | * src/location.c (location_caret): finish the line with one whether or not it is present in input. Rewrite code without getline. (cleanup_caret): Reset the caret_info global. * bootstrap.conf: No longer require getline.
* gnulib: updateAkim Demaille2012-12-191-0/+6
|
* tests: address syntax-check failuresAkim Demaille2012-12-161-7/+1
| | | | | | | * cfg.mk: Ignore failures in timevar (uses GCC style configuration, not gnulib's). * doc/local.mk: Space changes. * lib/main.c, tests/calc.at: Remove useless HAVE_ tests.
* Merge remote-tracking branch 'origin/maint'Theophile Ranquet2012-12-061-12/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/maint: misc: pacify the Tiny C Compiler cpp: make the check of Flex version portable misc: require getline c++: support wide strings for file names doc: document carets tests: enhance existing tests with carets errors: show carets getargs: add support for --flags/-f Conflicts: doc/bison.texi m4/.gitignore src/complain.c src/flex-scanner.h src/getargs.c src/getargs.h src/gram.c src/main.c tests/headers.at
| * misc: require getlineTheophile Ranquet2012-12-051-0/+2
| | | | | | | | | | * bootstrap.conf: Here, used by src/location.c. * src/getargs.c (long_options): Rename --flags to --feature.
* | Merge remote-tracking branch 'origin/maint'Akim Demaille2012-12-032-0/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/maint: parser: accept #line NUM m4: use a safer pattern to enable/disable output tests: beware of gnulib's need for config.h gnulib: update yacc.c, glr.c: check and fix the display of locations formatting changes glr.c: remove stray macro Conflicts: data/c.m4 data/glr.cc data/lalr1.cc data/lalr1.java data/location.cc data/stack.hh data/yacc.c src/scan-gram.l
| * gnulib: updateAkim Demaille2012-11-302-0/+8
| | | | | | | | | | * lib/yyerror.c: Include config.h since the following stdio.h might be from gnulib.
* | Merge remote-tracking branch 'origin/maint'Akim Demaille2012-09-261-0/+2
|\ \ | |/ | | | | | | | | | | * origin/maint: regen yacc: fix handling of CPP guards when no header is generated gnulib: update
| * gnulib: updateAkim Demaille2012-09-251-0/+3
| |
* | Merge branch 'maint'Akim Demaille2012-07-311-7/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: use obstack_printf scanner: restore a missing start condition gnulib: update maint: post-release administrivia version 2.6.1 gnulib: update maint: fix some syntax-check issues tests: do not depend on __cplusplus to decide for C++ or C output Conflicts: NEWS bootstrap.conf cfg.mk lib/.gitignore
| * use obstack_printfAkim Demaille2012-07-311-0/+1
| | | | | | | | | | | | | | | | | | | | This is not just nicer, it is also much safer, since we were using sprintf... * bootstrap.conf: Require it. * src/system.h (obstack_fgrow1, obstack_fgrow2, obstack_fgrow3) (obstack_fgrow4): Remove. Adjust dependencies.
* | Merge remote-tracking branch 'origin/maint'Akim Demaille2012-06-261-0/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/maint: tests: do not output m4 set up. tests: use the generic yyerror function. tests: use assert instead of plain abort. tests: improve the generic yylex implementation. tests: generalize the compilation macros. tests: fix confusion between api.prefix and name-prefix. maint: gitignores. yacc: work around the ylwrap limitation. Conflicts: NEWS tests/local.at
| * maint: gitignores.Akim Demaille2012-06-261-0/+3
| |
* | maint: don't use mbsr?chr.Akim Demaille2012-06-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Basically, revert ba60c39547a445dee3e07920931b4d7a81843868's move to mbs* functions, which was prompted by -DGNULIB_POSIXCHECK. See <http://lists.gnu.org/archive/html/bison-patches/2012-05/msg00052.html> and following. * bootstrap.conf: No longer ask for them. * src/files.c, src/getargs.c, src/location.c, * src/parse-gram.c, src/parse-gram.y, src/scan-gram.l, * src/symtab.c: s/mbs(r?chr)/str$1/g.
* | maint: use xconcat-filename.Akim Demaille2012-06-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootstrap.conf (gnulib_modules): Request it. * src/output.h, src/output.c (compute_pkgdatadir): Rename as... (pkgdatadir): this. Adjust dependencies. * src/output.c (output_skeleton): Reduce the scope of "in". Use xconcatenated_filename to simplify the construction of the qualified paths to m4sugar.m4, bison.m4, and the selected skeleton. There are a few minor differences: the new code uses strchr instead of mbschr (but this was not really justified), and the new code does not garantee a single slash even if $BISON_PKGDATADIR ends with several (which was considered more accurate). See the discussion at <http://lists.gnu.org/archive/html/bison-patches/2012-05/msg00052.html>.
* | Merge tag 'v2.5.1_rc2'Akim Demaille2012-05-241-27/+29
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bison 2.5.1_rc2. * tag 'v2.5.1_rc2': (34 commits) Bison 2.5.1_rc2. doc: fixes. build: fix ChangeLog generation. c++: compute the header guards. skeletons: remove support for unused directive. lalr1.cc: improve Doxygen documentation. lalr1.cc: extract stack.hh. news: convert to double quotes. space changes. build: do not prototype flex-generated functions. build: fix ChangeLog generation. Bison 2.5.1_rc1. tests: save/restore Autotest special files when checking XML support. tests: AT_SAVE_SPECIAL_FILES / AT_RESTORE_SPECIAL_FILES. tests: honor TESTSUITEFLAGS in all the check targets. build: do not enable c++ warnings on 0 when nullptr is not supported. maint: update gnulib. build: config.in.h. build: move silent rules. glr.c: reduce variable scopes. maint: maintainer-release-check. maint: shush a syntax-check. maint: prefer "commit message" to "log entry". command line: fix minor leaks. maint: we no longer maintain the ChangeLog. maint: fix the generation of the synclines for bison's parser. maint: regen. maint: import the xmemdup0 gnulib module. maint: remove left-over gnulib modules. maint: ignore files imported by autopoint. build: AC_PROG_LEX: use more readable variable names. maint: regen src/parse-gram.[ch] maint: simplify parse-gram.y maint: s/strncpy/memcpy/, when equivalent Conflicts: Makefile.am NEWS data/glr.c data/lalr1.cc data/stack.hh examples/rpcalc/local.mk src/flex-scanner.h src/getargs.c src/output.c src/parse-gram.c src/parse-gram.h src/parse-gram.y tests/Makefile.am tests/bison.in
| * maint: update gnulib.Akim Demaille2012-05-111-0/+1
| | | | | | | | * bootstrap, gnulib: Update.
| * build: config.in.h.Akim Demaille2012-05-091-1/+1
| | | | | | | | | | | | | | | | Historically we used config.hin (where everybody else used config.h.in) to please DOS. Now that we use gnulib, there are already tons of files with several dots, especially *.in.h. * configure.ac: Rename config.hin as config.in.h.
| * maint: import the xmemdup0 gnulib module.Akim Demaille2012-05-061-0/+2
| | | | | | | | | | * bootstrap.conf: Require this module. * src/parse-gram.y: Include xmemdup0.h.
| * maint: remove left-over gnulib modules.Akim Demaille2012-05-061-26/+25
| | | | | | | | | | * bootstrap.conf (gnulib_modules): Remove pipe-posix. * lib/.gitignore, m4/.gitignore: Remove files that we no longer use.
* | Merge remote-tracking branch 'origin/maint'Akim Demaille2012-04-011-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/maint: bump to 2012 in skeletons. build: remove ancient Autoconf tests. doc: c++: complete the location documentation. c++: locations: provide convenience constructors. c++: locations: remove useless "inline". glr: do not use locations when they are not requested c++: use nullptr for C++11. build: simplify and improve the compiler warnings for tests. gnulib: update. maint: formatting changes. NEWS: update. Java: Fix syntax error handling without error token. tests: beware of -pedantic on large #line numbers. tests: when using the C++ compiler, use its flags too. Conflicts: data/glr.c data/glr.cc data/lalr1.cc data/location.cc data/yacc.c tests/Makefile.am
| * c++: use nullptr for C++11.Akim Demaille2012-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++11 introduces "nullptr" which plays the role of C's NULL, in replacement of "0". Fix the C++ skeletons to avoid warnings about uses of "0" in place of "nullptr", and improve C skeletons to also use this "nullptr" when compiled with a C++11 compiler. * configure.ac: More C++ warnings. * NEWS (2.5.1): Document this. * data/c++.m4, data/c.m4 (b4_null_define): New. (b4_null): Use YY_NULL instead of 0. * data/glr.c, data/lalr1.cc, data/location.cc, data/yacc.c: Call b4_null_define/b4_null where appropriate. Use YY_NULL instead of NULL. * data/location.cc (initialize): Accept a default argument, YY_NULL. * tests/actions.at, tests/calc.at: Adjust. * data/glr.c, lib/libiberty.h, src/system.h (__attribute__): Do not disable it when __STRICT_ANSI__ is defined, as, for instance, it disables the __attribute__((unused)) which protects us from some compiler warnings. This was already done elsewhere in Bison, in 2001, see 4a0d89369599a2cea01f4fbdf791f426a02cb5a3. * tests/regression.at: Adjust output.