git.annexia.org
/
miniexpect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
miniexpect: Debug next_match field
[miniexpect.git]
/
miniexpect.c
diff --git
a/miniexpect.c
b/miniexpect.c
index
7debc02
..
85826a0
100644
(file)
--- a/
miniexpect.c
+++ b/
miniexpect.c
@@
-361,6
+361,9
@@
mexp_expect (mexp_h *h, const mexp_regexp *regexps, int *ovector, int ovecsize)
h->next_match = ovector[1];
else
h->next_match = -1;
+ if (h->debug_fp)
+ fprintf (h->debug_fp, "DEBUG: next_match at buffer offset %zu\n",
+ h->next_match);
return regexps[i].r;
}