Lines Matching defs:nmatch
124 H(" number use number for nmatch (20 by default)\n");
449 matchprint(ssize_t* match, int nmatch, char* ans)
453 for (; nmatch > 0; nmatch -= 2)
454 if (match[nmatch-2] != -2 && (!state.ignore.position || match[nmatch-2] >= 0 && match[nmatch-2] >= 0))
456 for (i = 0; i < nmatch; i += 2)
476 matchcheck(int nmatch, ssize_t* match, char* ans, char* re, char* s, int flags, int query, int unspecified, int expand)
483 for (i = 0, p = ans; i < nmatch && *p; i += 2)
510 matchprint(match, nmatch, ans);
515 for (; i < nmatch; i += 2)
527 matchprint(match, nmatch, ans);
532 if (match[nmatch] != -2)
535 matchprint(match, nmatch + 1, NiL);
610 int nmatch;
790 nmatch = 20;
795 if ((nmatch = 2 * strtol(p, &p, 10)) >= elementsof(match))
796 bad("nmatch too large\n", spec, NiL, 0);
1029 eret = (rmatch = strgrpmatch(s, re, match, nmatch / 2, eflags)) == 0;
1044 eret = (rmatch = strgrpmatch(s, re, match, nmatch / 2, eflags)) == 0;
1070 report("failed", fun, re, s, msg, nmatch, unspecified, expand);
1084 report("failed", fun, re, s, msg, nmatch, unspecified, expand);
1098 report("failed", fun, re, s, msg, nmatch, unspecified, expand);
1113 report("should fail and didn't", fun, re, s, msg, nmatch, unspecified, expand);
1114 matchprint(match, nmatch, NiL);
1125 report("failed: no match but match array assigned", NiL, re, s, msg, nmatch, unspecified, expand);
1126 matchprint(match, nmatch, NiL);
1130 else if (!matchcheck(2 * rmatch, match, ans, re, s, nmatch, query, unspecified, expand))