Browse code

unify DUPMAX def

aCaB authored on 2009/11/17 20:40:08
Showing 2 changed files
... ...
@@ -138,12 +138,6 @@ static char nuls[10];		/* place to point scanner in event of error */
138 138
 #define	THERETHERE()	(p->slen - 2)
139 139
 #define	DROP(n)	(p->slen -= (n))
140 140
 
141
-#ifdef	_POSIX2_RE_DUP_MAX
142
-#define	DUPMAX	_POSIX2_RE_DUP_MAX
143
-#else
144
-#define	DUPMAX	255
145
-#endif
146
-
147 141
 #ifndef NDEBUG
148 142
 static int never = 0;		/* for use in asserts; shuts lint up */
149 143
 #else
... ...
@@ -36,7 +36,11 @@
36 36
  */
37 37
 
38 38
 /* utility definitions */
39
-#define	DUPMAX		_POSIX2_RE_DUP_MAX	/* xxx is this right? */
39
+#ifdef  _POSIX2_RE_DUP_MAX
40
+#define DUPMAX  _POSIX2_RE_DUP_MAX
41
+#else
42
+#define DUPMAX  255
43
+#endif
40 44
 #define	INFINITY	(DUPMAX + 1)
41 45
 #define	NC		(CHAR_MAX - CHAR_MIN + 1)
42 46
 typedef unsigned char uch;