Lines Matching refs:pmatch
74 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member
128 matcher(struct re_guts *g, char *string, size_t nmatch, regmatch_t pmatch[], in matcher() argument
145 start = string + pmatch[0].rm_so; in matcher()
146 stop = string + pmatch[0].rm_eo; in matcher()
167 m->pmatch = NULL; in matcher()
183 free(m->pmatch); in matcher()
205 if (m->pmatch == NULL) in matcher()
206 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
208 if (m->pmatch == NULL) { in matcher()
213 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
222 free(m->pmatch); in matcher()
245 assert(m->pmatch[i].rm_so == -1); in matcher()
246 assert(m->pmatch[i].rm_eo == -1); in matcher()
265 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
266 pmatch[0].rm_eo = endp - m->offp; in matcher()
269 assert(m->pmatch != NULL); in matcher()
272 pmatch[i] = m->pmatch[i]; in matcher()
274 pmatch[i].rm_so = -1; in matcher()
275 pmatch[i].rm_eo = -1; in matcher()
279 if (m->pmatch != NULL) in matcher()
280 free((char *)m->pmatch); in matcher()
451 m->pmatch[i].rm_so = sp - m->offp; in dissect()
456 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
575 if (m->pmatch[i].rm_eo == -1) in backref()
577 assert(m->pmatch[i].rm_so != -1); in backref()
578 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref()
584 ssp = m->offp + m->pmatch[i].rm_so; in backref()
638 offsave = m->pmatch[i].rm_so; in backref()
639 m->pmatch[i].rm_so = sp - m->offp; in backref()
643 m->pmatch[i].rm_so = offsave; in backref()
649 offsave = m->pmatch[i].rm_eo; in backref()
650 m->pmatch[i].rm_eo = sp - m->offp; in backref()
654 m->pmatch[i].rm_eo = offsave; in backref()