X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffnmatch.c;h=fe4e502a512b7b740f799bbf446d0d55932c9234;hb=df308e3fc0bbea8e50977ab1e86e4ddf124606d8;hp=73dc0e78ec02a8fb9de6fb252d1997bfca7787f1;hpb=3b3a258ec065376e379991d4db3b54079cf12f0e;p=gnulib.git diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 73dc0e78e..fe4e502a5 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -1,5 +1,5 @@ /* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2000, 2001, - 2002 Free Software Foundation, Inc. + 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -45,23 +45,14 @@ char *alloca (); # define __builtin_expect(expr, expected) (expr) #endif -#include -#include #include -#include - -#if HAVE_STRING_H || defined _LIBC -# include -#else -# if HAVE_STRINGS_H -# include -# endif -#endif -#if defined STDC_HEADERS || defined _LIBC -# include -# include -#endif +#include +#include +#include +#include +#include +#include #define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC) @@ -178,10 +169,6 @@ extern int fnmatch (const char *pattern, const char *string, int flags); /* Avoid depending on library functions or files whose names are inconsistent. */ -# if !defined _LIBC && !defined getenv && !HAVE_DECL_GETENV -extern char *getenv (); -# endif - # ifndef errno extern int errno; # endif @@ -328,10 +315,7 @@ is_char_class (const wchar_t *wcs) int -fnmatch (pattern, string, flags) - const char *pattern; - const char *string; - int flags; +fnmatch (const char *pattern, const char *string, int flags) { # if HANDLE_MULTIBYTE if (__builtin_expect (MB_CUR_MAX, 1) != 1)