Lines Matching refs:ret
46 int ret; member
53 .ret = 0, .nmatch = 1, .matches = { { .rm_so = 0, .rm_eo = 1 } }
56 .ret = 0, .nmatch = 1, .matches = { { .rm_so = 0, .rm_eo = 3 } }
59 .ret = 0, .nmatch = 4, .matches = {
67 .ret = 0, .nmatch = 1, .matches = { { .rm_so = 3, .rm_eo = 10 } }
81 int ret; in main() local
85 ret = regcomp(®ex, tests[t].pattern, REG_EXTENDED); in main()
86 if (ret != 0) { in main()
87 printf("expression \"%s\" failed to compile: %d\n", tests[t].pattern, ret); in main()
91 ret = regexec(®ex, tests[t].string, MAX_MATCH, matches, 0); in main()
93 if (ret != tests[t].ret) { in main()
95 tests[t].pattern, tests[t].string, ret, tests[t].ret); in main()
99 if (ret == 0) { in main()