diff options
author | Jim Meyering <jim@meyering.net> | 2003-06-02 06:58:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-06-02 06:58:18 +0000 |
commit | 6b6141eb016dc050ff3d6555e3c63af050a31e2e (patch) | |
tree | 51f387191087c331e69c31f33ce5cb30f94fc833 /src | |
parent | 885d681dff2ab87b9d17404d27b317614dd80155 (diff) | |
download | coreutils-6b6141eb016dc050ff3d6555e3c63af050a31e2e.tar.xz |
[!TEST_STANDALONE]: Remove #if-0'd block.
(STREQ, S_IXUGO): Remove redundant (in system.h) definitions.
Diffstat (limited to 'src')
-rw-r--r-- | src/test.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/src/test.c b/src/test.c index c13ddec38..f0af41ed1 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 <config.h> #include <stdio.h> @@ -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 <limits.h> -# else /* !_POSIX_VERSION */ -# include <sys/param.h> -# 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 <limits.h> +#ifndef _POSIX_VERSION +# include <sys/param.h> +#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 <sys/file.h> @@ -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 */ |