aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-12-08 16:37:01 +0000
committerDJ Delorie <dj@redhat.com>2000-12-08 16:37:01 +0000
commitac424eb32cfa4618d9c3b58276e950e2cc58c540 (patch)
treece31655983ddde8e1e5bee9ddc4b332540e586bb /libiberty/pexecute.c
parent39cd2525463aab63af6a9b111a01fb2b37e1733a (diff)
downloadgdb-ac424eb32cfa4618d9c3b58276e950e2cc58c540.zip
gdb-ac424eb32cfa4618d9c3b58276e950e2cc58c540.tar.gz
gdb-ac424eb32cfa4618d9c3b58276e950e2cc58c540.tar.bz2
* safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c. (REQUIRED_OFILES): Add safe-ctype.o. * argv.c: Define ISBLANK and use it, not isspace. * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) before calling TOLOWER(c)/TOUPPER(c).
Diffstat (limited to 'libiberty/pexecute.c')
-rw-r--r--libiberty/pexecute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c
index 34d2deb..32943af 100644
--- a/libiberty/pexecute.c
+++ b/libiberty/pexecute.c
@@ -41,12 +41,12 @@ extern int errno;
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
-#define ISSPACE (x) isspace(x)
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#include "libiberty.h"
+#include "safe-ctype.h"
/* stdin file number. */
#define STDIN_FILE_NO 0