Lines Matching refs:bufp

44 static int re_search_2_stub (struct re_pattern_buffer *bufp,
49 static int re_search_stub (struct re_pattern_buffer *bufp,
308 re_match (bufp, string, length, start, regs)
309 struct re_pattern_buffer *bufp;
314 return re_search_stub (bufp, string, length, start, 0, length, regs, 1);
321 re_search (bufp, string, length, start, range, regs)
322 struct re_pattern_buffer *bufp;
327 return re_search_stub (bufp, string, length, start, range, length, regs, 0);
334 re_match_2 (bufp, string1, length1, string2, length2, start, regs, stop)
335 struct re_pattern_buffer *bufp;
340 return re_search_2_stub (bufp, string1, length1, string2, length2,
348 re_search_2 (bufp, string1, length1, string2, length2, start, range, regs, stop)
349 struct re_pattern_buffer *bufp;
354 return re_search_2_stub (bufp, string1, length1, string2, length2,
362 re_search_2_stub (bufp, string1, length1, string2, length2, start, range, regs,
364 struct re_pattern_buffer *bufp;
399 rval = re_search_stub (bufp, str, len, start, range, stop, regs,
412 re_search_stub (bufp, string, length, start, range, stop, regs, ret_len)
413 struct re_pattern_buffer *bufp;
422 re_dfa_t *dfa = (re_dfa_t *) bufp->buffer;
434 eflags |= (bufp->not_bol) ? REG_NOTBOL : 0;
435 eflags |= (bufp->not_eol) ? REG_NOTEOL : 0;
438 if (range > 0 && bufp->fastmap != NULL && !bufp->fastmap_accurate)
439 re_compile_fastmap (bufp);
441 if (BE (bufp->no_sub, 0))
447 else if (BE (bufp->regs_allocated == REGS_FIXED &&
448 regs->num_regs < bufp->re_nsub + 1, 0))
459 nregs = bufp->re_nsub + 1;
467 result = re_search_internal (bufp, string, length, start, range, stop,
478 bufp->regs_allocated = re_copy_regs (regs, pmatch, nregs,
479 bufp->regs_allocated);
480 if (BE (bufp->regs_allocated == REGS_UNALLOCATED, 0))
570 re_set_registers (bufp, regs, num_regs, starts, ends)
571 struct re_pattern_buffer *bufp;
578 bufp->regs_allocated = REGS_REALLOCATE;
585 bufp->regs_allocated = REGS_UNALLOCATED;