X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffnmatch_loop.c;h=7798b59ec803782ac7c8dc85143f839bb6755395;hb=f8893f198d71f38bd66d23ff6ea712eb79376313;hp=8d7f2fa6b0f5531adecdb15f487b59d98d4670f2;hpb=f48d647b2e16627ef3679f2f694480d35a19ae68;p=gnulib.git diff --git a/lib/fnmatch_loop.c b/lib/fnmatch_loop.c index 8d7f2fa6b..7798b59ec 100644 --- a/lib/fnmatch_loop.c +++ b/lib/fnmatch_loop.c @@ -1009,6 +1009,7 @@ EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end, size_t pattern_len = STRLEN (pattern); const CHAR *p; const CHAR *rs; + enum { ALLOCA_LIMIT = 8000 }; /* Parse the pattern. Store the individual parts in the list. */ level = 0; @@ -1044,7 +1045,6 @@ EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end, if (level-- == 0) { /* This means we found the end of the pattern. */ -#define ALLOCA_LIMIT 8000 #define NEW_PATTERN \ struct patternlist *newp; \ size_t plen; \