From: Jim Meyering Date: Mon, 2 Jun 2003 06:58:18 +0000 (+0000) Subject: [!TEST_STANDALONE]: Remove #if-0'd block. X-Git-Tag: v5.0.1~418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b6141eb016dc050ff3d6555e3c63af050a31e2e;p=thirdparty%2Fcoreutils.git [!TEST_STANDALONE]: Remove #if-0'd block. (STREQ, S_IXUGO): Remove redundant (in system.h) definitions. --- diff --git a/src/test.c b/src/test.c index c13ddec38e..f0af41ed1e 100644 --- a/src/test.c +++ b/src/test.c @@ -22,7 +22,6 @@ /* Define TEST_STANDALONE to get the /bin/test version. Otherwise, you get the shell builtin version. */ -/* #define TEST_STANDALONE */ #include #include @@ -33,27 +32,19 @@ #define TEST_STANDALONE 1 -#if !defined (TEST_STANDALONE) -# include "shell.h" -# include "posixstat.h" -# include "filecntl.h" -#else /* TEST_STANDALONE */ -# include "system.h" -# include "error.h" -# include "euidaccess.h" -# if !defined (S_IXUGO) -# define S_IXUGO 0111 -# endif /* S_IXUGO */ -# if defined (_POSIX_VERSION) -# include -# else /* !_POSIX_VERSION */ -# include -# endif /* _POSIX_VERSION */ -# define whitespace(c) (((c) == ' ') || ((c) == '\t')) -# define digit(c) ((c) >= '0' && (c) <= '9') -# define digit_value(c) ((c) - '0') +#include "system.h" +#include "error.h" +#include "euidaccess.h" + +#include +#ifndef _POSIX_VERSION +# include +#endif /* _POSIX_VERSION */ +#define whitespace(c) (((c) == ' ') || ((c) == '\t')) +#define digit(c) ((c) >= '0' && (c) <= '9') +#define digit_value(c) ((c) - '0') + char *program_name; -#endif /* TEST_STANDALONE */ #if !defined (_POSIX_VERSION) # include @@ -64,9 +55,6 @@ char *program_name; extern int errno; #endif -#undef STREQ -#define STREQ(a, b) ((a)[0] == (b)[0] && strcmp (a, b) == 0) - #if !defined (member) # define member(c, s) ((c) ? (strchr ((s), (c)) ? 1 : 0) : 0) #endif /* !member */