[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] fnmatch ALLOCA_LIMIT collision fix
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] fnmatch ALLOCA_LIMIT collision fix |
Date: |
19 Jan 2004 11:11:07 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
To fix this:
fnmatch.c:324:1: warning: "ALLOCA_LIMIT" redefined
In file included from fnmatch.c:316:
fnmatch_loop.c:1047:1: warning: this is the location of the previous definitio\n
I installed the following. (Sorry, I did this on January 14 but
somehow didn't send out the email message that I composed then.)
2004-01-14 Paul Eggert <address@hidden>
* fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
with like-named macro in fnmatch.c.
(EXT): Use an internal constant instead.
Index: fnmatch_loop.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fnmatch_loop.c,v
retrieving revision 1.6
diff -p -u -r1.6 fnmatch_loop.c
--- fnmatch_loop.c 14 Jan 2004 22:15:48 -0000 1.6
+++ fnmatch_loop.c 14 Jan 2004 22:20:50 -0000
@@ -1009,6 +1009,7 @@ EXT (INT opt, const CHAR *pattern, const
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
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; \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] fnmatch ALLOCA_LIMIT collision fix,
Paul Eggert <=