[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    [PATCH util] Bumped -I flag limit in makedepend from 64 to 512.
From:       David Boyce <boyski () users ! sourceforge ! net>
Date:       2013-12-28 2:50:38
Message-ID: 1388199038-11217-1-git-send-email-boyski () users ! sourceforge ! net
[Download RAW message or body]

Clearly a limit of 64 -I flags is too low (we hit it); it might be
a good style recommendation but shouldn't be a hard limit.
512 is a fairly random replacement value.
---
 def.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/def.h b/def.h
index 1930cde..2a7d28c 100644
--- a/def.h
+++ b/def.h
@@ -41,7 +41,7 @@ in this Software without prior written authorization from The Open Group.
 #define MAXDEFINES	512
 #define MAXFILES	2048
 #define MAXINCFILES	128	/* "-include" files */
-#define MAXDIRS		64
+#define MAXDIRS		512	/* -I flags */
 #define SYMTABINC	10	/* must be > 1 for define() to work right */
 #define	TRUE		1
 #define	FALSE		0
-- 
1.8.1.3

For our own purposes we could get by with a doubling to 128, but there
doesn't seem to be a substantial memory footprint issue here so the
maximum could go much higher. I picked 512 more or less at random.
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic