Commit Graph

17 Commits

Author SHA1 Message Date
Akim Demaille
0d533154e4 First set of tests: use the `calc' example from the documentation.
* src/bison.s1 (yyparse): Condition the code using `yytname' which
is defined only when YYDEBUG is.
* m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
* src/files.c (tryopen, tryclose): Formatting changes.
Move to the top and be static.
* src/reader.c (read_signed_integer): Likewise.
* tests/calc.m4: New file.
* Makefile.am, suite.m4: Adjust.
* m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2000-09-18 13:18:26 +00:00
Jesse Thilo
4a120d45e6 More explicit use of "const", "extern", and "static", particularly to
limit the scope of many local variables and functions.
2000-07-04 03:29:02 +00:00
Akim Demaille
cfe5fbc0a1 * src/files.c (tryopen, tryclose): Move to the top.
Be static.
2000-03-31 14:56:00 +00:00
Akim Demaille
a0f6b07611 Clean the error reporting functions.
* src/report.c: New file.
* src/report.h: Likewise.
* src/Makefile.am: Adjust.
* m4/error.m4: New file.
* m4/Makefile.am: Adjust.
* configure.in (jm_PREREQ_ERROR): Call it.
* src/main.c (int_to_string, banner, fatal_banner, warn_banner):
Remove.
(fatal, fatals): Remove.  All callers use complain.c::fatal.
(warn, warni, warns, warnss, warnss): Remove.  All callers use
complain.c::complain.
(toomany): Remove, use fatal instead.
* src/files.c (done): No argument, use complain_message_count.
* src/main.c (main): Register `done' to `atexit'.

* src/getargs.c (usage): More `fputs', less `fprintf'.
2000-03-31 13:54:30 +00:00
Jesse Thilo
5191ef2421 OS/2 honors TMPDIR environment variable. 1999-12-13 07:36:01 +00:00
Jesse Thilo
dad49092a9 Added <unistd.h> for unlink(). 1999-05-30 13:17:48 +00:00
Jesse Thilo
9eceb6c6d3 Defined locations of parser files in config.h instead of Makefile. 1999-02-12 15:18:12 +00:00
Jesse Thilo
a693bf18ef Add tryclose(), which verifies that fclose was successful.
Hush a couple of compiler warnings.
1999-01-20 22:53:23 +00:00
Jesse Thilo
c49a8e71ce Update FSF address. 1999-01-14 14:58:38 +00:00
Jesse Thilo
bd088c911c Honor TMPDIR on Unix hosts.
Use prototypes if the compiler understands them.
1998-12-30 05:22:02 +00:00
Richard M. Stallman
e0672a6170 (openfiles): [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
find a temporary directory, if possible.  Do not unlink files while
they are open.
1998-01-05 00:25:39 +00:00
Richard M. Stallman
7612000cb0 new.h renamed to alloc.h. 1997-06-18 06:40:45 +00:00
Richard M. Stallman
6a5705cfe8 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined. 1996-12-19 08:24:56 +00:00
Richard M. Stallman
28683c5444 (openfiles, open_extra_files, done): Add faction flag
and actfile file.  Handle noparserflag.  Both for -n switch.
1995-10-15 20:02:02 +00:00
Richard M. Stallman
fcca25ad3c Test __VMS_POSIX as well as VMS. 1995-02-23 07:43:50 +00:00
David MacKenzie
40675e7cc9 entered into RCS 1993-04-20 05:55:54 +00:00
Richard M. Stallman
54bd0db436 Initial revision 1993-04-15 19:37:53 +00:00