Akim Demaille
9507085cf3
Regen.
2001-10-26 14:33:02 +00:00
Akim Demaille
8d3c8c3643
Version 1.30.
2001-10-26 13:43:20 +00:00
Akim Demaille
ddf896eb8e
Version 1.29f.
...
* tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
avoid spurious failures.
2001-10-18 16:18:54 +00:00
Akim Demaille
94ff2b9475
* 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).
2001-10-18 15:24:53 +00:00
Akim Demaille
470d206b2e
* m4/m4.m4: Remove.
...
* configure.in: M4 is no longer needed, but autom4te is.
* tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
AC_SUBST do it.
2001-10-10 15:24:02 +00:00
Akim Demaille
16cd214585
* INSTALL, config/config.guess, config/config.sub, config/mdate-sh
...
* config/mkinstalldirs, lib/ansi2knr.c: Update.
2001-10-10 14:39:11 +00:00
Akim Demaille
d9302e4b73
* tests/regression.at (Invalid CPP headers): New.
...
From Alexander Belopolsky.
* src/files.c (compute_header_macro): Map non alnum chars to `_'.
2001-10-02 16:17:41 +00:00
Akim Demaille
f1394282f0
* tests/regression.at (Invalid input): New.
...
* src/lex.c (lex): Be sure to set `token_buffer' in any case.
Reported by Shura.
2001-10-02 15:52:24 +00:00
Akim Demaille
d8b1af2801
* tests/calc.at: Now that --debug works, the tests must be adjusted.
2001-10-02 15:36:11 +00:00
Akim Demaille
ab30845981
* tests/testsuite.at: Update to newer Autotest.
...
* tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
2001-09-28 11:56:12 +00:00
Akim Demaille
02cbcfc577
Position independent wrapper.
...
* tests/bison: Remove.
* tests/bison.in: New.
* configure.in: Adjust.
2001-09-27 15:06:14 +00:00
Akim Demaille
8c67836b58
Position independent wrapper.
...
* tests/bison: Remove.
* tests/bison.in: New.
* configure.in: Adjust.
2001-09-27 15:00:02 +00:00
Akim Demaille
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.
2001-09-22 16:56:37 +00:00
Akim Demaille
ce209526ed
* tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend upon package.m4.
2001-09-21 16:41:46 +00:00
Akim Demaille
b94bf14aac
More ignores.
2001-09-21 16:35:45 +00:00
Akim Demaille
cdd11a9322
* tests/Makefile.am (package.m4): Move to...
...
($(srcdir)/$(TESTSUITE)): here.
2001-09-21 14:44:22 +00:00
Marc Autret
47cef7a2ff
* tests/regression.at: New test (comment in %union).
2001-09-18 15:18:26 +00:00
Marc Autret
ea4f4c4c1b
* tests/output.at: Add tests for --defines and --graph.
2001-09-18 11:14:21 +00:00
Marc Autret
d97207ad77
* tests/output.at: Removes tests of %{header,src}_extension features.
2001-09-18 11:04:29 +00:00
Akim Demaille
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.
2001-09-18 10:51:36 +00:00
Akim Demaille
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.
2001-09-10 09:59:39 +00:00
Akim Demaille
3b14996787
* tests/calc.at: Use m4_match.
...
(_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
2001-09-10 09:31:50 +00:00
Akim Demaille
31478b7ab7
* configure.in: Bump to 1.29a.
2001-09-10 08:23:56 +00:00
Akim Demaille
d37a7c45b3
Regen. and fix typo in configure.in.
2001-08-30 15:41:41 +00:00
Akim Demaille
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.
2001-08-30 15:36:37 +00:00
Akim Demaille
e0a53a7f4a
More ignores.
2001-08-29 12:08:41 +00:00
Akim Demaille
e373aad966
* Makefile.am (AUTOMAKE_OPTIONS): 1.5.
...
* Makefile.maint: Sync. with CVS Autoconf.
2001-08-27 09:33:34 +00:00
Pascal Bart
dd9f12de60
* tests/suite.at: Exercise %header_extension and %source_extension.
2001-08-21 07:30:37 +00:00
Akim Demaille
e5aa395b38
More cvsignore.
2001-08-15 08:43:44 +00:00
Pascal Bart
1e41465a20
* tests/atconfig.in (CPPFLAGS): Fix.
2001-08-13 19:30:26 +00:00
Akim Demaille
976e528f02
* tests/atconfig.in (CPPFLAGS): Fix.
2001-08-07 13:03:20 +00:00
Akim Demaille
8303fc422a
* tests/atconfig.in (CPPFLAGS): Add.
...
* tests/calc.at (AT_CHECK): Use CPPFLAGS.
2001-08-04 14:00:09 +00:00
Akim Demaille
2ce1014469
* tests/Makefile.am (check-local): Ship testsuite.
...
* tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
Include `string.h'.
2001-08-03 10:13:42 +00:00
Akim Demaille
62ab6972e8
* src/getargs.h (raw_flag): Remove.
...
* src/getargs.c: Die on `-r'/`--raw'.
* src/lex.c (parse_percent_token): Die on `%raw'.
* src/reader.c (output_token_defines): Suppress call to `raw_flag'.
* tests/calc.at: Suppress test with option `--raw'.
2001-07-18 09:52:35 +00:00
Akim Demaille
1e24cc5b41
* config/: New.
...
* configure.in: Require Autoconf 2.50.
Update to gettext 0.10.38.
2001-07-14 17:27:59 +00:00
Akim Demaille
5141b01619
* m4/strerror_r.m4: New.
...
* m4/error.m4: Run AC_FUNC_STRERROR_R.
* lib/error.h, lib/error.c: Update.
2001-03-16 14:50:40 +00:00
Akim Demaille
6deb44470e
Since we now use obstacks, more % directives can be enabled.
...
* src/lex.c (percent_table): Also accept `%yacc',
`%fixed_output_files', `%defines', `%no_parser', `%verbose', and
`%debug'.
Handle the actions for `%semantic_parser' and `%pure_parser' here,
instead of returning a token.
* src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
* src/reader.c (read_declarations): Adjust.
* src/files.c (open_files): Don't call `compute_base_names', don't
compute `attrsfile' since they depend upon data which might be
*in* the input file now.
(output_files): Do it here.
* src/output.c (output_headers): Document the fact that this patch
introduces a guaranteed SEGV for semantic parsers.
* doc/bison.texinfo: Document them.
* tests/suite.at: Exercise these %options.
2001-01-18 14:47:09 +00:00
Akim Demaille
705db0b507
Hopefully added to the repository all the distributed files.
2001-01-15 13:46:43 +00:00
Akim Demaille
956dba3a7c
* src/files.c (open_files): Fix the computation of short_base_name
...
in the case of `-o foo.tab.c'.
2000-12-20 12:41:52 +00:00
Akim Demaille
5d3214b854
* src/files.c (open_files): Actually the `.output' file is based
...
on the short_base_name, not base_name.
* tests/suite.at (Checking output file names): Adjust.
2000-12-20 12:00:13 +00:00
Akim Demaille
29092a5740
* src/bison.s1: Remove, we now use directly...
...
* src/bison.simple: this.
* src/Makefile.am: Use pkgdata instead of data.
2000-12-20 10:38:51 +00:00
Akim Demaille
19c50364f3
* src/files.c (strsuffix): New.
...
(stringappend): Be just like strcat but allocate.
(base_names): Eve out from open_files.
Try to simplify the rather hairy computation of base_name and
short_base_name.
(open_files): Use it.
* tests/suite.at (Checking output file names): New test.
2000-12-19 18:14:35 +00:00
Akim Demaille
bfb0787482
Add tests/calc.at.
2000-12-18 09:02:16 +00:00
Akim Demaille
c95f2d781f
Add tests/regression.at and tests/suite.at.
2000-12-15 09:44:44 +00:00
Akim Demaille
6fd54b73c3
* tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
...
as...
(suite.m4, regression.m4, calc.m4): these.
* tests/atgeneral.m4: Update from CVS Autoconf.
2000-11-17 11:16:10 +00:00
Akim Demaille
4c50eae6a0
* tests/regression.m4 (%union and --defines): New test,
...
demonstrating a current bug in the obstack implementation.
2000-11-17 11:08:03 +00:00
Akim Demaille
d16e8d3cd7
Adjust the cvsignores.
2000-11-03 16:57:47 +00:00
Akim Demaille
ff4a34be27
* lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
...
* m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
New files, from Fileutils 4.0.27.
* src/main.c (printable_version): Remove.
* src/lex.c, src/reader.c: Use `quote'.
* lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2000-10-16 17:28:41 +00:00
Akim Demaille
8e03724b11
When a literal string is used to define two different tokens,
...
`bison -v' segfaults.
Reported by Piotr Gackiewicz, and fixed by Neil Booth.
* tests/regression.m4: New file.
Include the core of the sample provided by Piotr Gackiewicz.
* src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
properly.
2000-10-04 11:52:53 +00:00
Akim Demaille
89cab50df1
The location tracking mechanism is precious for parse error
...
messages. Nevertheless, it is enabled only when `@n' is used in
the grammar, which is a different issue (you can use it in error
message, but not in the grammar per se). Therefore, there should
be another means to enable it.
* src/getargs.c (getargs): Support `--locations'.
(usage): Report it.
* src/getargs.h (locationsflag): Export it.
* src/lex.c (percent_table): Support `%locations'.
* src/reader.c (yylsp_needed): Remove this variable, now replaced
with `locationsflag'.
* doc/bison.texinfo: Document `--locations' and `%locations'.
Sort the options.
* tests/calc.m4: Test it.
For regularity of the names, replace each
(nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
(no_lineflag, token_tableflag, rawflag, no_parserflag): this.
In addition replace each `flag' with `_flag'.
2000-10-02 10:20:59 +00:00