View | Details | Raw Unified
Collapse All | Expand All

(-) a2ps-4.13.orig/lib/fnmatch.c (-15 / +4 lines)
 Lines 27-44    Link Here 
#include <fnmatch.h>
#include <fnmatch.h>
#include <ctype.h>
#include <ctype.h>
/* Comment out all this code if we are using the GNU C Library, and are not
   actually compiling the library itself.  This code is part of the GNU C
   Library, but also included in many other GNU distributions.  Compiling
   and linking in this code is a waste when using the GNU C library
   (especially if it is a shared library).  Rather than having every GNU
   program understand `configure --with-gnu-libc' and omit the object files,
   it is simpler to just do this in the source for each such file.  */
#if defined _LIBC || !defined __GNU_LIBRARY__
# if defined STDC_HEADERS || !defined isascii
# if defined STDC_HEADERS || !defined isascii
#  define ISASCII(c) 1
#  define ISASCII(c) 1
# else
# else
 Lines 52-61    Link Here 
extern int errno;
extern int errno;
# endif
# endif
/* fnmatch replacement taken from the GNU C Library for systems that 
   provide a broken implementation. */
/* Match STRING against the filename pattern PATTERN, returning zero if
/* Match STRING against the filename pattern PATTERN, returning zero if
   it matches, nonzero if not.  */
   it matches, nonzero if not.  */
int
int
fnmatch (const char *pattern, const char *string, int flags)
rpl_fnmatch (const char *pattern, const char *string, int flags)
{
{
  register const char *p = pattern, *n = string;
  register const char *p = pattern, *n = string;
  register char c;
  register char c;
 Lines 233-237   fnmatch (const char *pattern, const char Link Here 
# undef FOLD
# undef FOLD
}
}
#endif	/* _LIBC or not __GNU_LIBRARY__.  */