Lines Matching defs:codes
273 T(" codes (with REG_ omitted) or the match array, a list of (m,n)\n");
524 static const struct { int code; char* name; } codes[] =
2064 for (i = 1; i < elementsof(codes); i++)
2065 if (cret==codes[i].code)
2068 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2072 printf("%s returned: ", codes[got].name);
2079 for (i = 1; i < elementsof(codes); i++)
2081 if (streq(ans, codes[i].name))
2083 if (cret==codes[i].code)
2089 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2093 printf("%s expected, %s returned\n", ans, codes[got].name);
2096 else if (cret != codes[expected].code && cret != REG_BADPAT)
2099 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2105 printf("%s expected, %s returned: ", ans, codes[got].name);