matcher_match: disable output
This commit is contained in:
parent
6248d19cf9
commit
a964f4fd63
1 changed files with 3 additions and 1 deletions
|
|
@ -77,8 +77,10 @@ matcher_match(regexp_matcher_t* matcher, const char* subject)
|
||||||
match_data, // match data
|
match_data, // match data
|
||||||
NULL // match context
|
NULL // match context
|
||||||
);
|
);
|
||||||
|
#if 0
|
||||||
fprintf(stderr, "%s: pcre2_match returned %d for `%s'\n",
|
fprintf(stderr, "%s: pcre2_match returned %d for `%s'\n",
|
||||||
__FUNCTION__, n, subject);
|
__FUNCTION__, n, subject);
|
||||||
|
#endif
|
||||||
if (n < 0)
|
if (n < 0)
|
||||||
return n;
|
return n;
|
||||||
#define START_IX(i) ((i) * 2 + 0)
|
#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) {
|
for (i = 0; i < n; ++i) {
|
||||||
if (ovector[START_IX(i)] == ovector[END_IX(i)])
|
if (ovector[START_IX(i)] == ovector[END_IX(i)])
|
||||||
continue;
|
continue;
|
||||||
#if 1
|
#if 0
|
||||||
fprintf(stderr, "%s: match %d: %ld .. %ld: `%.*s'\n",
|
fprintf(stderr, "%s: match %d: %ld .. %ld: `%.*s'\n",
|
||||||
__FUNCTION__, i,
|
__FUNCTION__, i,
|
||||||
ovector[START_IX(i)], ovector[END_IX(i)] - 1,
|
ovector[START_IX(i)], ovector[END_IX(i)] - 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue