Lines Matching refs:tags
40 const tre_tnfa_t *tnfa, int *tags, int match_eo)
52 /* Construct submatch offsets from the tags. */
60 pmatch[i].rm_so = tags[submatch_data[i].so_tag];
65 pmatch[i].rm_eo = tags[submatch_data[i].eo_tag];
132 int *tags = NULL, eo;
137 tags = alloca(sizeof(*tags) * tnfa->num_tags);
139 tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
141 if (tags == NULL)
158 tags, eflags, &eo);
169 status = tre_tnfa_run_approx(tnfa, string, (int)len, type, tags,
177 tags, eflags, &eo);
182 tre_fill_pmatch(nmatch, pmatch, tnfa->cflags, tnfa, tags, eo);
184 if (tags)
185 xfree(tags);
321 int *tags = NULL, eo;
344 tags = alloca(sizeof(*tags) * tnfa->num_tags);
346 tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
348 if (tags == NULL)
351 status = tre_tnfa_run_approx(tnfa, string, (int)len, type, tags,
354 tre_fill_pmatch(nmatch, match->pmatch, tnfa->cflags, tnfa, tags, eo);
356 if (tags)
357 xfree(tags);