matcher_match: disable output

This commit is contained in:
Daniel Brahneborg 2025-12-04 16:55:52 +01:00
parent 6248d19cf9
commit a964f4fd63

View file

@ -77,8 +77,10 @@ matcher_match(regexp_matcher_t* matcher, const char* subject)
match_data, // match data
NULL // match context
);
#if 0
fprintf(stderr, "%s: pcre2_match returned %d for `%s'\n",
__FUNCTION__, n, subject);
#endif
if (n < 0)
return n;
#define START_IX(i) ((i) * 2 + 0)
@ -89,7 +91,7 @@ matcher_match(regexp_matcher_t* matcher, const char* subject)
for (i = 0; i < n; ++i) {
if (ovector[START_IX(i)] == ovector[END_IX(i)])
continue;
#if 1
#if 0
fprintf(stderr, "%s: match %d: %ld .. %ld: `%.*s'\n",
__FUNCTION__, i,
ovector[START_IX(i)], ovector[END_IX(i)] - 1,