Lines Matching defs:tags
56 const tre_tnfa_t *tnfa, int *tags, int match_eo)
65 /* Construct submatch offsets from the tags. */
73 pmatch[i].rm_so = tags[submatch_data[i].so_tag];
78 pmatch[i].rm_eo = tags[submatch_data[i].eo_tag];
145 int *tags = NULL, eo;
149 tags = alloca(sizeof(*tags) * tnfa->num_tags);
151 tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
153 if (tags == NULL)
170 tags, eflags, &eo);
181 status = tre_tnfa_run_approx(tnfa, string, (int)len, type, tags,
189 tags, eflags, &eo);
194 tre_fill_pmatch(nmatch, pmatch, tnfa->cflags, tnfa, tags, eo);
196 if (tags)
197 xfree(tags);
260 int *tags = NULL, eo;
277 tags = alloca(sizeof(*tags) * tnfa->num_tags);
279 tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
281 if (tags == NULL)
284 status = tre_tnfa_run_approx(tnfa, string, (int)len, type, tags,
287 tre_fill_pmatch(match->nmatch, match->pmatch, tnfa->cflags, tnfa, tags, eo);
289 if (tags)
290 xfree(tags);