summaryrefslogtreecommitdiff
path: root/lib/libc/regex/engine.c
diff options
context:
space:
mode:
authorDiomidis Spinellis <dds@FreeBSD.org>2009-09-16 06:29:23 +0000
committerDiomidis Spinellis <dds@FreeBSD.org>2009-09-16 06:29:23 +0000
commitbca3476acdbddfc6fc9fb254312dfb30ff71da37 (patch)
tree9bde9f9af41a691d36dd1e4b9c58bc102e1e6693 /lib/libc/regex/engine.c
parentb8614722ff870b42acfc96f072bfeaf435b145d0 (diff)
Notes
Diffstat (limited to 'lib/libc/regex/engine.c')
-rw-r--r--lib/libc/regex/engine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c
index a44511b8d5610..4c3f5550aaaf9 100644
--- a/lib/libc/regex/engine.c
+++ b/lib/libc/regex/engine.c
@@ -247,6 +247,8 @@ matcher(struct re_guts *g,
if (g->moffset > -1)
start = ((dp - g->moffset) < start) ? start : dp - g->moffset;
+ SP("mloop", m->st, *start);
+
/* this loop does only one repetition except for backrefs */
for (;;) {
endp = fast(m, start, stop, gf, gl);
@@ -787,6 +789,7 @@ fast( struct match *m,
CLEAR(st);
SET1(st, startst);
+ SP("fast", st, *p);
st = step(m->g, startst, stopst, st, NOTHING, st);
ASSIGN(fresh, st);
SP("start", st, *p);