Commit Graph
114 Commits
Author SHA1 Message Date
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 cb7db13e45 * src/main.c (main): Don't call `done', exit does it. 2000-03-31 14:37:10 +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
Akim Demaille e87b57008e Be kind to translators, save some useless translations.
* main.c (banner): New function.
(fatal_banner): Use it.
(warn_banner): Use it.
2000-03-17 13:02:28 +00:00
Jesse Thilo c49a8e71ce Update FSF address. 1999-01-14 14:58:38 +00:00
Jesse Thilo a889d44ce2 Ditch sprintf to statically-sized buffers in fatal/warn functions in
favor of output directly to stderr (avoids buffer overruns).
1998-12-30 06:29:42 +00:00
Jesse Thilo d2729d44ab Use prototypes if the compiler understands them. 1998-12-30 05:27:11 +00:00
Richard M. Stallman 319ce53328 (fatal, warn, berror): Use program_name. 1997-06-28 19:31:35 +00:00
Richard M. Stallman 3d05a5de82 (fatal, warn, berror): Make error messages standard.
(toomany): Improve error message text.
1997-06-18 17:09:27 +00:00
Richard M. Stallman 42f95d63c2 (main): Return FAILURE as a value.
(printable_version): Declare arg as int, not char.
1997-01-02 06:59:56 +00:00
Richard M. Stallman 2934057149 Insert `_' macro around many string constants.
(main): Call setlocale, bindtextdomain and textdomain.
1996-06-01 22:07:27 +00:00
Richard M. Stallman a98ad01e46 (main): If reader sees an error, don't process the grammar.
(fatals): Updated to not use VARARGS1.
(printable_version, int_to_string, warn, warni, warns, warnss)
(warnsss): New error reporting functions.  Avoid abort for error.
1995-10-15 20:08:17 +00:00
Richard M. Stallman fe01694d7c entered into RCS 1994-03-25 22:52:41 +00:00
Richard M. Stallman 54bd0db436 Initial revision 1993-04-15 19:37:53 +00:00