summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-06-30 12:56:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-06-30 12:56:59 +0000
commitd47053ebddc7ad9e077ef3549a5cfd970b0413f8 (patch)
treeda982d4446062bb40245e4e35a7e1846355d35c3 /regcomp.c
parentc255a977e711cfcc80bf8505a4ec628313b34ec9 (diff)
downloadperl-d47053ebddc7ad9e077ef3549a5cfd970b0413f8.tar.gz
Fix a couple of compilation warnings
p4raw-id: //depot/perl@28456
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/regcomp.c b/regcomp.c
index e3f0ac6dff..4de57279d2 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -1878,9 +1878,11 @@ S_join_exact(pTHX_ RExC_state_t *pRExC_state, regnode *scan, I32 *min, U32 flags
regnode *stop = scan;
GET_RE_DEBUG_FLAGS_DECL;
#else
+ PERL_UNUSED_ARG(depth);
+#endif
+#ifndef EXPERIMENTAL_INPLACESCAN
PERL_UNUSED_ARG(flags);
PERL_UNUSED_ARG(val);
- PERL_UNUSED_ARG(depth);
#endif
DEBUG_PEEP("join",scan,depth);
@@ -1894,7 +1896,6 @@ S_join_exact(pTHX_ RExC_state_t *pRExC_state, regnode *scan, I32 *min, U32 flags
if (OP(n) == TAIL || n > next)
stringok = 0;
if (PL_regkind[OP(n)] == NOTHING) {
-
DEBUG_PEEP("skip:",n,depth);
NEXT_OFF(scan) += NEXT_OFF(n);
next = n + NODE_STEP_REGNODE;
@@ -1925,17 +1926,17 @@ S_join_exact(pTHX_ RExC_state_t *pRExC_state, regnode *scan, I32 *min, U32 flags
if (stopnow) break;
}
-#ifdef EXPERIMENTAL_INPLACESCAN
- if (flags && !NEXT_OFF(n)) {
- DEBUG_PEEP("atch",val,depth);
- if (reg_off_by_arg[OP(n)]) {
- ARG_SET(n, val - n);
- }
- else {
- NEXT_OFF(n) = val - n;
- }
- stopnow=1;
- }
+#ifdef EXPERIMENTAL_INPLACESCAN
+ if (flags && !NEXT_OFF(n)) {
+ DEBUG_PEEP("atch", val, depth);
+ if (reg_off_by_arg[OP(n)]) {
+ ARG_SET(n, val - n);
+ }
+ else {
+ NEXT_OFF(n) = val - n;
+ }
+ stopnow = 1;
+ }
#endif
}