X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fexclude.c;h=bc3e6e62ff80741f597c8d1b1a40b0d36eb1de13;hb=cbf7a84bcf8194d6687244fb0e0701539aeeee21;hp=fe74f361c6ca1431e5513802df79b53a71ac90d7;hpb=349d7fe0e307d59d508b3579317ee8d4eacfeb9c;p=gnulib.git diff --git a/lib/exclude.c b/lib/exclude.c index fe74f361c..bc3e6e62f 100644 --- a/lib/exclude.c +++ b/lib/exclude.c @@ -1,6 +1,6 @@ /* exclude.c -- exclude file names - Copyright (C) 1992-1994, 1997, 1999-2007, 2009-2011 Free Software + Copyright (C) 1992-1994, 1997, 1999-2007, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -60,14 +60,6 @@ verify (((EXCLUDE_ANCHORED | EXCLUDE_INCLUDE | EXCLUDE_WILDCARDS) | FNM_CASEFOLD | FNM_EXTMATCH)) == 0); -/* The attribute __pure__ was added in gcc 2.96. */ -#undef _GL_ATTRIBUTE_PURE -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) -#else -# define _GL_ATTRIBUTE_PURE /* empty */ -#endif - /* Exclusion patterns are grouped into a singly-linked list of "exclusion segments". Each segment represents a set of patterns @@ -119,7 +111,7 @@ struct exclude }; /* Return true if str has wildcard characters */ -bool _GL_ATTRIBUTE_PURE +bool fnmatch_pattern_has_wildcards (const char *str, int options) { const char *cset = "\\?*[]";