summaryrefslogtreecommitdiff
path: root/regex
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2004-08-13 14:59:58 +0000
committerAntony Dovgal <tony2001@php.net>2004-08-13 14:59:58 +0000
commite511b57e2a95f894be59d1a0a6b784ee45b16e0b (patch)
treec39386100943fef0fbeadaa10557d9641667931c /regex
parentf370d0290f0925971c04fbac6f5bbc7e88f2dac4 (diff)
downloadphp-git-e511b57e2a95f894be59d1a0a6b784ee45b16e0b.tar.gz
fix yet another annoying compile warning
Diffstat (limited to 'regex')
-rw-r--r--regex/engine.c14
-rw-r--r--regex/regexec.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/regex/engine.c b/regex/engine.c
index c4bdc8079f..0682267f61 100644
--- a/regex/engine.c
+++ b/regex/engine.c
@@ -270,7 +270,7 @@ sopno stopst;
/* figure out what it matched */
switch (OP(m->g->strip[ss])) {
case OEND:
- assert(nope);
+ assert(PHP_REGEX_NOPE);
break;
case OCHAR:
sp++;
@@ -286,7 +286,7 @@ sopno stopst;
break;
case OBACK_:
case O_BACK:
- assert(nope);
+ assert(PHP_REGEX_NOPE);
break;
/* cases where length of match is hard to find */
case OQUEST_:
@@ -389,7 +389,7 @@ sopno stopst;
case OOR1:
case OOR2:
case O_CH:
- assert(nope);
+ assert(PHP_REGEX_NOPE);
break;
case OLPAREN:
i = OPND(m->g->strip[ss]);
@@ -402,7 +402,7 @@ sopno stopst;
m->pmatch[i].rm_eo = sp - m->offp;
break;
default: /* uh oh */
- assert(nope);
+ assert(PHP_REGEX_NOPE);
break;
}
}
@@ -606,12 +606,12 @@ sopno lev; /* PLUS nesting level */
return(NULL);
break;
default: /* uh oh */
- assert(nope);
+ assert(PHP_REGEX_NOPE);
break;
}
/* "can't happen" */
- assert(nope);
+ assert(PHP_REGEX_NOPE);
/* NOTREACHED */
return((unsigned char *)NULL); /* dummy */
}
@@ -914,7 +914,7 @@ register states aft; /* states already known reachable after */
FWD(aft, aft, 1);
break;
default: /* ooooops... */
- assert(nope);
+ assert(PHP_REGEX_NOPE);
break;
}
}
diff --git a/regex/regexec.c b/regex/regexec.c
index c8cb8fdf56..bbfe094c96 100644
--- a/regex/regexec.c
+++ b/regex/regexec.c
@@ -16,7 +16,7 @@
#include "utils.h"
#include "regex2.h"
-static int nope = 0; /* for use in asserts; shuts lint up */
+#define PHP_REGEX_NOPE 0; /* for use in asserts; shuts lint up */
/* macros for manipulating states, small version */
#define states unsigned