From: Ben Pfaff Date: Mon, 24 Apr 2006 21:13:34 +0000 (+0000) Subject: Use gnulib exit module. X-Git-Tag: v0.6.0~957 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=793b1e4345762d98ecc0ffbf6ace0b901c0b52b5;p=pspp-builds.git Use gnulib exit module. --- diff --git a/ChangeLog b/ChangeLog index 377c6c06..02ffc5dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 24 14:12:25 2006 Ben Pfaff + + * Smake: Add exit to GNULIB_MODULES. + Sun Apr 23 20:34:50 2006 Ben Pfaff * Smake: Add linebreak to GNULIB_MODULES. diff --git a/Smake b/Smake index 686212e4..1eac2148 100644 --- a/Smake +++ b/Smake @@ -10,6 +10,7 @@ GNULIB_MODULES = \ assert \ c-ctype \ c-strtod \ + exit \ full-read \ full-write \ gethostname \ diff --git a/src/ChangeLog b/src/ChangeLog index 2930c220..75c21188 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 24 14:11:33 2006 Ben Pfaff + + * message.c: Use exit.h from gnulib instead of checking for and + defining EXIT_SUCCESS and EXIT_FAILURE by hand. + Sun Apr 23 22:00:23 2006 Ben Pfaff Continue reforming error message support. In this phase, get rid diff --git a/src/language/lexer/ChangeLog b/src/language/lexer/ChangeLog index 6fc3eae9..dec6835f 100644 --- a/src/language/lexer/ChangeLog +++ b/src/language/lexer/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 24 14:12:08 2006 Ben Pfaff + + * q2c.c: Use exit.h from gnulib instead of checking for and + defining EXIT_SUCCESS and EXIT_FAILURE by hand. + Sat Apr 15 14:30:35 2006 Ben Pfaff * q2c.c: Change DEBUGGING macro to DUMP_TOKENS for clarity and to diff --git a/src/language/lexer/q2c.c b/src/language/lexer/q2c.c index ec369dbc..1b12c269 100644 --- a/src/language/lexer/q2c.c +++ b/src/language/lexer/q2c.c @@ -29,16 +29,7 @@ #include #include #include - - -/* Brokenness. */ -#ifndef EXIT_SUCCESS -#define EXIT_SUCCESS 0 -#endif - -#ifndef EXIT_FAILURE -#define EXIT_FAILURE 1 -#endif +#include "exit.h" /* Max length of an input line. */ diff --git a/src/message.c b/src/message.c index 35debc7f..a7f226a8 100644 --- a/src/message.c +++ b/src/message.c @@ -30,6 +30,7 @@ #include #include #include +#include "exit.h" #include "linebreak.h" #include "progname.h" @@ -102,15 +103,6 @@ err_check_count (void) getl_abort_noninteractive (); } -/* Some machines are broken. Compensate. */ -#ifndef EXIT_SUCCESS -#define EXIT_SUCCESS 0 -#endif - -#ifndef EXIT_FAILURE -#define EXIT_FAILURE 1 -#endif - static void puts_stdout (int line_indent, const char *line, size_t length); static void dump_message (char *msg, void (*func) (int line_indent,