From: Richard W.M. Jones Date: Mon, 25 Jul 2022 15:01:10 +0000 (+0100) Subject: miniexpect: Debug next_match field X-Git-Tag: v1.1~1 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=6a57e58c3c2bd2df7d22545f850c469f5fe7f58f;p=miniexpect.git miniexpect: Debug next_match field --- diff --git a/miniexpect.c b/miniexpect.c index 7debc02..85826a0 100644 --- 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; }