Date: Wed, 16 Sep 2009 06:29:23 +0000 (UTC) From: Diomidis Spinellis <dds@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197245 - head/lib/libc/regex Message-ID: <200909160629.n8G6TN4b014281@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dds Date: Wed Sep 16 06:29:23 2009 New Revision: 197245 URL: http://svn.freebsd.org/changeset/base/197245 Log: Add a couple of debugging statements. Modified: head/lib/libc/regex/engine.c Modified: head/lib/libc/regex/engine.c ============================================================================== --- head/lib/libc/regex/engine.c Wed Sep 16 05:33:15 2009 (r197244) +++ head/lib/libc/regex/engine.c Wed Sep 16 06:29:23 2009 (r197245) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909160629.n8G6TN4b014281>