diff options
author | DJ Delorie <dj@redhat.com> | 2000-12-08 16:37:01 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2000-12-08 16:37:01 +0000 |
commit | ac424eb32cfa4618d9c3b58276e950e2cc58c540 (patch) | |
tree | ce31655983ddde8e1e5bee9ddc4b332540e586bb /libiberty/basename.c | |
parent | Actually add safe-ctype.h (diff) | |
download | binutils-gdb-ac424eb32cfa4618d9c3b58276e950e2cc58c540.tar.gz binutils-gdb-ac424eb32cfa4618d9c3b58276e950e2cc58c540.tar.bz2 binutils-gdb-ac424eb32cfa4618d9c3b58276e950e2cc58c540.zip |
* 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/basename.c')
-rw-r--r-- | libiberty/basename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/basename.c b/libiberty/basename.c index 7698f06f8ae..ca089ebbc5a 100644 --- a/libiberty/basename.c +++ b/libiberty/basename.c @@ -20,7 +20,7 @@ BUGS #include "ansidecl.h" #include "libiberty.h" -#include <ctype.h> +#include "safe-ctype.h" #ifndef DIR_SEPARATOR #define DIR_SEPARATOR '/' @@ -50,7 +50,7 @@ basename (name) #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ - if (isalpha (name[0]) && name[1] == ':') + if (ISALPHA (name[0]) && name[1] == ':') name += 2; #endif |