From 3aed4c550503a0565591a723580081f5111c0f6c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 21 Nov 2002 09:24:43 +0000 Subject: Merge argmatch cleanups from Bison. Assume C89. Include config.h here, not in argmatch.h. Include stdlib.h, for EXIT_FAILURE. Always include , since we assume C89. (EXIT_FAILURE): Remove pre-C89 bug workaround. --- lib/argmatch.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'lib') diff --git a/lib/argmatch.c b/lib/argmatch.c index 005be881f..746365840 100644 --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -18,12 +18,15 @@ /* Written by David MacKenzie Modified by Akim Demaille */ +#if HAVE_CONFIG_H +# include +#endif + #include "argmatch.h" #include -#ifdef STDC_HEADERS -# include -#endif +#include +#include #if HAVE_LOCALE_H # include @@ -48,14 +51,6 @@ # define ARGMATCH_QUOTING_STYLE locale_quoting_style #endif -/* The following test is to work around the gross typo in - systems like Sony NEWS-OS Release 4.0C, whereby EXIT_FAILURE - is defined to 0, not 1. */ -#if !EXIT_FAILURE -# undef EXIT_FAILURE -# define EXIT_FAILURE 1 -#endif - /* Non failing version of argmatch call this function after failing. */ #ifndef ARGMATCH_DIE # define ARGMATCH_DIE exit (EXIT_FAILURE) -- cgit v1.2.3-70-g09d2