From 6a57e58c3c2bd2df7d22545f850c469f5fe7f58f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 25 Jul 2022 16:01:10 +0100 Subject: [PATCH] miniexpect: Debug next_match field --- miniexpect.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 1.8.3.1