Lines Matching refs:regs
62 run_test (const char *pattern, struct re_registers *regs) in run_test() argument
73 memset (regs, '\0', 2 * sizeof (regs[0])); in run_test()
90 res = re_search (&pat, text, strlen (text), 0, strlen (text), ®s[0]); in run_test()
95 res, regs[0].start[0], regs[0].end[0]); in run_test()
97 if (regs[0].end == NULL) in run_test()
100 start2 = regs[0].end[0] + 1; in run_test()
101 regs[1] = regs[0]; in run_test()
102 res = re_search (&pat, text, strlen (text), start2, strlen (text), ®s[1]); in run_test()
107 res, regs[1].start[0], regs[1].end[0]); in run_test()
118 struct re_registers regs[4]; in do_test() local
129 result |= run_test (lower, regs); in do_test()
130 result |= run_test (upper, ®s[2]); in do_test()
133 CHECK (regs[0].start[0] != regs[2].start[0]); in do_test()
134 CHECK (regs[0].end[0] != regs[2].end[0]); in do_test()
135 CHECK (regs[1].start[0] != regs[3].start[0]); in do_test()
136 CHECK (regs[1].end[0] != regs[3].end[0]); in do_test()
144 result |= run_test (lower, regs); in do_test()
145 result |= run_test (upper, ®s[2]); in do_test()
148 CHECK (regs[0].start[0] != regs[2].start[0]); in do_test()
149 CHECK (regs[0].end[0] != regs[2].end[0]); in do_test()
150 CHECK (regs[1].start[0] != regs[3].start[0]); in do_test()
151 CHECK (regs[1].end[0] != regs[3].end[0]); in do_test()