Mercurial > hg > octave-kai > gnulib-hg
changeset 1246:4a739f2a5dad
revert most of last delta, but leave cppi/copyright changes
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 22 Feb 1998 08:21:07 +0000 |
parents | 1d34299b4760 |
children | d48d2e0fa40f |
files | lib/dirname.c |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/dirname.c +++ b/lib/dirname.c @@ -33,15 +33,6 @@ # 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 @@ } 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;