Mercurial > hg > octave-jordi > gnulib-hg
changeset 56:05adbdfa0f87
GNU file utilities
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 07 Apr 1993 04:52:01 +0000 |
parents | 395da10fb137 |
children | 63b43eab1c61 |
files | lib/Makefile.in lib/backupfile.c lib/fnmatch.c lib/makepath.c lib/userspec.c |
diffstat | 5 files changed, 17 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -64,7 +64,10 @@ rm -f TAGS dist: - ln $(DISTFILES) ../`cat ../.fname`/lib + for file in $(DISTFILES); do \ + ln $$file ../`cat ../.fname`/lib \ + || cp $$file ../`cat ../.fname`/lib; \ + done libfu.a: $(OBJECTS) rm -f $@
--- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -60,12 +60,14 @@ char *malloc (); #endif -#ifndef isascii -#define ISDIGIT(c) (isdigit ((unsigned char) (c))) -#else -#define ISDIGIT(c) (isascii (c) && isdigit (c)) +#if !defined (isascii) || defined (STDC_HEADERS) +#undef isascii +#define isascii(c) 1 #endif +#define ISDIGIT(c) (isascii ((unsigned char ) c) \ + && isdigit ((unsigned char) (c))) + #if defined (HAVE_UNISTD_H) #include <unistd.h> #endif
--- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -77,7 +77,8 @@ return 0; { - char c1 = (!(flags & FNM_NOESCAPE) && c == '\\') ? FOLD (*p) : c; + char c1 = (!(flags & FNM_NOESCAPE) && c == '\\') ? *p : c; + c1 = FOLD (c1); for (--p; *n != '\0'; ++n) if ((c == '[' || FOLD (*n) == c1) && fnmatch (p, n, flags & ~FNM_PERIOD) == 0)
--- a/lib/makepath.c +++ b/lib/makepath.c @@ -51,7 +51,9 @@ #if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include <string.h> +#ifndef index #define index strchr +#endif #else #include <strings.h> #endif @@ -93,7 +95,7 @@ int retval = 0; int oldmask = umask (0); - dirpath = alloca (strlen (argpath) + 1); + dirpath = (char *) alloca (strlen (argpath) + 1); strcpy (dirpath, argpath); if (stat (dirpath, &stats))