summaryrefslogtreecommitdiff
path: root/lib/dirname.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-02-22 08:21:07 +0000
committerJim Meyering <jim@meyering.net>1998-02-22 08:21:07 +0000
commit6e05a132597b6aaa6bcd027e2e95fb7392f0637e (patch)
tree011ac5a1557cb09b00182f4e62fdc2c23c263b97 /lib/dirname.c
parenta1413ad1cdb057ae3eee688686cf149f77289dd7 (diff)
downloadcoreutils-6e05a132597b6aaa6bcd027e2e95fb7392f0637e.tar.xz
revert most of last delta, but leave cppi/copyright changes
Diffstat (limited to 'lib/dirname.c')
-rw-r--r--lib/dirname.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/dirname.c b/lib/dirname.c
index 237dd4b75..7cc104095 100644
--- a/lib/dirname.c
+++ b/lib/dirname.c
@@ -33,15 +33,6 @@ char *malloc ();
# endif
#endif
-#include <ctype.h>
-
-#if defined STDC_HEADERS || (!defined isascii && !defined HAVE_ISASCII)
-# define IN_CTYPE_DOMAIN(c) 1
-#else
-# define IN_CTYPE_DOMAIN(c) isascii(c)
-#endif
-#define ISALPHA(Ch) (IN_CTYPE_DOMAIN (Ch) && isalpha (Ch))
-
/* Return the leading directories part of PATH,
allocated with malloc. If out of memory, return 0.
Assumes that trailing slashes have already been
@@ -64,13 +55,6 @@ dirname (path)
}
else
{
- char *lim = path;
-
-#ifdef MSDOS
- /* If canonicalized "d:/path", leave alone the root case "d:/". */
- lim = (ISALPHA (path[0]) && path[1] == ':') ? path + 2 : path;
-#endif
-
/* Remove any trailing slashes from the result. */
while (slash > path && *slash == '/')
--slash;