Akim Demaille
6537c71fcc
maint: fix spello.
...
* README-hacking: Here.
* THANKS: Reported by Gilles Espinasse.
2012-06-12 14:49:48 +02:00
Akim Demaille
6733d02476
maint: improve release procedure instructions.
...
* gnulib: Update, in particular (README-release).
* bootstrap.conf: don't require gendocs, provided by gnu-web-doc-update,
provided by readme-release.
* README-hacking: Update accordingly.
2012-06-12 14:49:15 +02:00
Akim Demaille
cc9fb4f6b6
gnulib: update readme-release.
...
* gnulib (readme-release): Now includes the modules it promotes.
* bootstrap.conf: Simplify accordingly.
2012-06-07 11:15:04 +02:00
Akim Demaille
f763e6ef67
maint: cfg.mk: manual title.
...
* cfg.mk (manuel_title): New.
2012-06-07 11:15:04 +02:00
Akim Demaille
c4576b484a
maint: cfg.mk: simplify
...
* cfg.mk: Remove bits provided by maint.mk.
2012-06-07 11:15:04 +02:00
Akim Demaille
91aadcc7a9
maint: post-release administrivia
...
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
2012-06-07 11:15:04 +02:00
Akim Demaille
dfaac27242
version 2.5.1
...
* NEWS: Record release date.
v2.5.1
2012-06-05 10:03:25 +02:00
Akim Demaille
ed7658fe17
NEWS: prepare for 2.5.1.
...
* NEWS: Be compliant with do-release-commit-and-tag.
2012-06-05 10:02:17 +02:00
Akim Demaille
4d4777c786
maint: update release procedure
...
* bootstrap.conf: Request do-release-commit-and-tag and readme-release.
* README-hacking: Adjust.
2012-06-05 09:24:43 +02:00
Jim Meyering
cbdb6d9145
maint: fix comment typos
...
Using http://github.com/lyda/misspell-check , massage its
output into sed commands to perform the suggested changes.
Initially, I filtered out the THRU->Through changes, because
that failed to retain capitalization in the grammar token.
Instead, do this manually, beforehand:
sed -i s/THRU/THROUGH/ tests/existing.at
git ls-files|misspellings -f -|perl -nl \
-e '/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/ or next;' \
-e '($file,$n,$l,$r)=($1,$2,$3,$4); $q="'\''"; $r=~s/$q/$q\\$q$q/g;'\
-e 'print "sed -i $q${n}s!$l!$r!$q $file"'|bash
2012-06-05 09:17:43 +02:00
Akim Demaille
6a4f5c6ea0
maint: post-release administrivia
...
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
2012-05-23 14:41:37 +02:00
Akim Demaille
3cd7c0bfce
Bison 2.5.1_rc2.
...
* NEWS: Update.
v2.5.1_rc2
2012-05-23 14:30:22 +02:00
Akim Demaille
188867ac65
doc: fixes.
...
* doc/bison.texinfo: Fix errors spotted by syntax-check.
2012-05-23 14:24:30 +02:00
Akim Demaille
3f32a0d287
build: fix ChangeLog generation.
...
* gnulib: Update to get newest gitlog-to-changelog.
* bootstrap: Update.
* Makefile.am (gen-ChangeLog): Fix for Bison's git log style.
2012-05-23 14:24:30 +02:00
Akim Demaille
22172d4731
c++: compute the header guards.
...
This is a frequent request. Recently pointed out by Wei Song,
<http://lists.gnu.org/archive/html/help-bison/2012-05/msg00002.html >.
* data/c.m4 (b4_tocpp, b4_cpp_guard, b4_cpp_guard_open)
(b4_cpp_guard_close): New.
* data/lalr1.cc, data/location.cc, data/stack.hh: Use them.
* TODO (Header Guards): Move to...
* NEWS: here.
Formatting changes.
2012-05-21 18:15:41 +02:00
Akim Demaille
a19728cbb5
skeletons: remove support for unused directive.
...
* src/scan-skel.l (@dir_prefix@): Remove support, has never been
used, not even in the commit that introduced it,
2b81e969ea .
2012-05-21 16:07:34 +02:00
Akim Demaille
03f1b545b9
lalr1.cc: improve Doxygen documentation.
...
* data/location.cc: Qualify file names with directory name.
2012-05-21 16:07:34 +02:00
Akim Demaille
a9b67b5b1e
lalr1.cc: extract stack.hh.
...
See commit 51bacae6b5 .
* data/stack.hh: New, extracted from...
* data/lalr1.cc: here.
* data/Makefile.am: Adjust.
2012-05-21 16:07:34 +02:00
Akim Demaille
e4ab12542b
news: convert to double quotes.
...
* NEWS: Convert from `quoted' to "quoted".
Reported by Stefano Lattarini.
http://lists.gnu.org/archive/html/bison-patches/2012-05/msg00039.html
2012-05-21 16:07:34 +02:00
Akim Demaille
08f6341c01
space changes.
...
* src/flex-scanner.h: Indent nested cpp directives.
2012-05-21 14:48:52 +02:00
Akim Demaille
86b08b49b3
build: do not prototype flex-generated functions.
...
Some versions of Flex, possibly modified by the distribution package
maintainers, have incompatible signatures. Since newer versions of
Flex prototype their functions, avoid the conflicts in that case.
Reported by Stefano Lattarini.
<http://lists.gnu.org/archive/html/bug-bison/2012-05/msg00012.html >.
* src/flex-scanner.h (FLEX_VERSION_GT): New.
Use it to issue prototypes for flex-generated functions only for
versions up to 2.5.31, in accordance with the comment.
See commit dc9701e848 .
Use it to define yylex_destroy when needed.
2012-05-21 14:48:52 +02:00
Akim Demaille
7fb72c6e53
build: fix ChangeLog generation.
...
* Makefile.am (gen-ChangeLog): Fix for VPATH builds.
2012-05-16 10:36:13 +02:00
Akim Demaille
1ef57c947d
Bison 2.5.1_rc1.
...
* NEWS: Update.
* src/parse-gram.c, src/parse-gram.h: Regen.
2012-05-14 14:29:36 +02:00
Akim Demaille
035810ed2e
tests: save/restore Autotest special files when checking XML support.
...
Currently the test 248, "parse-gram.y: LALR = IELR", fails
BISON_TEST_XML is set.
* tests/local.at (AT_BISON_CHECK_XML): Belt: Save/restore files.
* tests/regression.at (parse-gram.y: LALR = IELR): Suspenders: Don't
rely on expout.
Each one of these changes suffices.
2012-05-11 17:13:48 +02:00
Akim Demaille
5192fd5d50
tests: AT_SAVE_SPECIAL_FILES / AT_RESTORE_SPECIAL_FILES.
...
Some of our macros play with expout and other Autotest special files,
which may break their callers (e.g., currently TESTSUITEFLAGS='248
BISON_TEST_XML=1' fails).
There is already some support for this. Expand it to be ready to use
it elsewhere.
* tests/local.at (AT_RESTORE_SPECIAL_FILES, AT_SAVE_SPECIAL_FILES)
(at_save_special_files, at_restore_special_files): New.
(AT_BISON_CHECK_NO_XML): Use them.
2012-05-11 17:06:18 +02:00
Akim Demaille
7f7fdba418
tests: honor TESTSUITEFLAGS in all the check targets.
...
* tests/Makefile.am (installcheck-local): Simplify.
(maintainer-check-posix, maintainer-check-valgrind): Honor
$(TESTSUITEFLAGS).
2012-05-11 15:06:58 +02:00
Akim Demaille
7e3510e6dd
build: do not enable c++ warnings on 0 when nullptr is not supported.
...
* configure.ac (WARN_CXXFLAGS): Enable -Wzero-as-null-pointer-constant
only when nullptr is supported..
2012-05-11 09:26:09 +02:00
Akim Demaille
b2c4c25d4a
maint: update gnulib.
...
* bootstrap, gnulib: Update.
2012-05-11 09:26:09 +02:00
Akim Demaille
91fd2b60b6
build: config.in.h.
...
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.
2012-05-09 11:21:34 +02:00
Akim Demaille
08ab0101bd
build: move silent rules.
...
* tests/Makefile.am: In the generation of the test suite.
2012-05-09 10:44:24 +02:00
Akim Demaille
aebb55eb92
glr.c: reduce variable scopes.
...
* data/glr.c: Where appropriate, fuse variable declarations followed
by assignments by variable declarations with a value.
Where appropriate, introduce new scopes to limit variable spans.
2012-05-09 10:44:23 +02:00
Akim Demaille
a0cd287e64
maint: maintainer-release-check.
...
* tests/Makefile.am (maintainer-release-check): New.
* Makefile.am (MAINTAINER_CHECKS): New.
Support maintainer-release-check.
* README-hacking: Document it, and syntax-check too.
2012-05-08 12:07:29 +02:00
Akim Demaille
dc584206f9
maint: shush a syntax-check.
...
* cfg.mk: lib/timevar is not planned to be gnulib'ed, as it comes
from GCC.
2012-05-08 12:07:29 +02:00
Akim Demaille
7de42e52bf
maint: prefer "commit message" to "log entry".
...
* README-hacking: here.
Suggested by Stefano Lattarini.
2012-05-08 12:07:29 +02:00
Akim Demaille
0b7fba1335
command line: fix minor leaks.
...
* src/getargs.c (getargs): Free pointers before allocating them new
content.
2012-05-08 10:27:34 +02:00
Akim Demaille
e2eb03d4e9
maint: we no longer maintain the ChangeLog.
...
* .gitattributes: No need to merge it.
* README-hacking: Update release instructions.
2012-05-08 10:17:46 +02:00
Akim Demaille
db0054f7e6
maint: fix the generation of the synclines for bison's parser.
...
* tests/bison.in: Import from master the changes that make
this script generate synclines that are independant of the
builddir/srcdir user's set up.
2012-05-06 10:38:29 +02:00
Akim Demaille
45aab21d77
maint: regen.
...
* src/parse-gram.c, src/parse-gram.h: Regen.
2012-05-06 10:29:43 +02:00
Akim Demaille
e54ec80c0c
maint: import the xmemdup0 gnulib module.
...
* bootstrap.conf: Require this module.
* src/parse-gram.y: Include xmemdup0.h.
2012-05-06 10:20:43 +02:00
Akim Demaille
85557aa1cb
maint: remove left-over gnulib modules.
...
* bootstrap.conf (gnulib_modules): Remove pipe-posix.
* lib/.gitignore, m4/.gitignore: Remove files that we no longer use.
2012-05-06 10:08:18 +02:00
Akim Demaille
47dcfd5a5c
maint: ignore files imported by autopoint.
...
* m4/.gitignore: here.
2012-05-06 10:08:18 +02:00
Akim Demaille
355e5a7255
build: AC_PROG_LEX: use more readable variable names.
...
* m4/flex.m4 (AC_PROG_LEX): Prefer LEX_IS_FLEX to FLEX.
Prefer true/false to yes/no for such variables.
* configure.ac: Adjust.
2012-05-06 10:08:18 +02:00
Jim Meyering
9c883a6bb0
maint: regen src/parse-gram.[ch]
2012-05-06 09:30:52 +02:00
Jim Meyering
60457f308d
maint: simplify parse-gram.y
...
* src/parse-gram.y (add_param): Use xmemdup0 in place of
xmalloc+memcpy, and strspn in place of an open-coded loop.
Co-authored-by: Akim Demaille <akim@lrde.epita.fr >
2012-05-06 09:29:36 +02:00
Jim Meyering
bb3b912b0a
maint: s/strncpy/memcpy/, when equivalent
...
* src/output.c (output_skeleton): Use memcpy, not strncpy,
since the source is known to fit in the destination buffer.
* src/parse-gram.y (%skeleton): Likewise.
2012-05-06 09:13:51 +02:00
Akim Demaille
7020e5f050
glr.c: untabify.
...
* data/glr.c: here.
2012-05-04 14:53:49 +02:00
Akim Demaille
dd8d335174
glr.cc: untabify.
...
* data/glr.cc: here.
2012-05-04 14:53:49 +02:00
Akim Demaille
021a7cfb3e
glr.cc: formatting changes.
...
* data/glr.cc: Fit in 80 columns.
2012-05-04 14:53:49 +02:00
Akim Demaille
30bc96ceca
glr.cc: remove unused signature.
...
* data/glr.cc (yydestruct_): Not used, remove.
It is yydestruct which is used.
2012-05-04 14:53:49 +02:00
Akim Demaille
78ab351c4f
glr.cc: properly declare locations are const where appropriate.
...
* data/glr.cc (yyerror): The location is const.
2012-05-04 14:53:48 +02:00