reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
169 m->g = g; 170 m->eflags = eflags; 171 m->pmatch = NULL; 172 m->lastpos = NULL; 173 m->offp = string; 174 m->beginp = start; 175 m->endp = stop; 176 STATESETUP(m, 4); 177 SETUP(m->st); 177 SETUP(m->st); 178 SETUP(m->fresh); 178 SETUP(m->fresh); 179 SETUP(m->tmp); 179 SETUP(m->tmp); 180 SETUP(m->empty); 180 SETUP(m->empty); 181 CLEAR(m->empty); 181 CLEAR(m->empty); 185 endp = fast(m, start, stop, gf, gl); 187 free(m->pmatch); 188 free((void*)m->lastpos); 189 STATETEARDOWN(m); 199 endp = slow(m, m->coldp, stop, gf, gl); 199 endp = slow(m, m->coldp, stop, gf, gl); 203 m->coldp++; 209 if (m->pmatch == NULL) 210 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) * 210 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) * 212 if (m->pmatch == NULL) { 213 STATETEARDOWN(m); 216 for (i = 1; i <= m->g->nsub; i++) 217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; 217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; 218 if (!g->backrefs && !(m->eflags®_BACKR)) { 220 dp = dissect(m, m->coldp, endp, gf, gl); 220 dp = dissect(m, m->coldp, endp, gf, gl); 222 if (g->nplus > 0 && m->lastpos == NULL) 223 m->lastpos = (const char **)malloc((g->nplus+1) * 225 if (g->nplus > 0 && m->lastpos == NULL) { 226 free(m->pmatch); 227 STATETEARDOWN(m); 231 dp = backref(m, m->coldp, endp, gf, gl, (sopno)0, 0); 231 dp = backref(m, m->coldp, endp, gf, gl, (sopno)0, 0); 240 if (dp != NULL || endp <= m->coldp) 243 endp = slow(m, m->coldp, endp-1, gf, gl); 243 endp = slow(m, m->coldp, endp-1, gf, gl); 254 dp = backref(m, m->coldp, endp, gf, gl, (sopno)0, 0); 254 dp = backref(m, m->coldp, endp, gf, gl, (sopno)0, 0); 262 if (m->coldp == stop) 264 start = m->coldp + 1; /* recycle starting later */ 269 pmatch[0].rm_so = m->coldp - m->offp; 269 pmatch[0].rm_so = m->coldp - m->offp; 270 pmatch[0].rm_eo = endp - m->offp; 275 if (i <= m->g->nsub) 276 pmatch[i] = m->pmatch[i]; 283 if (m->pmatch != NULL) 284 free((char *)m->pmatch); 285 if (m->lastpos != NULL) 286 free((char *)m->lastpos); 287 STATETEARDOWN(m);