Lines Matching refs:dc

71 kwsmusts (struct dfa_comp *dc)  in kwsmusts()  argument
73 struct dfamust *dm = dfamust (dc->dfa); in kwsmusts()
76 dc->kwset = kwsinit (false); in kwsmusts()
82 ++dc->kwset_exact_matches; in kwsmusts()
89 dc->begline |= dm->begline; in kwsmusts()
93 kwsincr (dc->kwset, must, new_len); in kwsmusts()
100 kwsincr (dc->kwset, dm->must, strlen (dm->must)); in kwsmusts()
102 kwsprep (dc->kwset); in kwsmusts()
147 regex_compile (struct dfa_comp *dc, char const *p, ptrdiff_t len, in regex_compile() argument
151 struct re_pattern_buffer *pat = syntax_only ? &pat0 : &dc->patterns[pcount]; in regex_compile()
181 struct dfa_comp *dc = xcalloc (1, sizeof (*dc)); in GEAcompile() local
183 dc->dfa = dfaalloc (); in GEAcompile()
189 dfasyntax (dc->dfa, &localeinfo, syntax_bits, dfaopts); in GEAcompile()
200 dc->patterns = xmalloc (sizeof *dc->patterns); in GEAcompile()
201 dc->patterns++; in GEAcompile()
202 dc->pcount = 0; in GEAcompile()
240 while (palloc <= dc->pcount + 1) in GEAcompile()
242 dc->patterns = x2nrealloc (dc->patterns - 1, &palloc, in GEAcompile()
243 sizeof *dc->patterns); in GEAcompile()
244 dc->patterns++; in GEAcompile()
247 if (!regex_compile (dc, p, len, dc->pcount, lineno, !backref)) in GEAcompile()
255 dc->pcount++; in GEAcompile()
282 dc->patterns--; in GEAcompile()
283 dc->pcount++; in GEAcompile()
285 if (!regex_compile (dc, buf, buflen, 0, -1, false)) in GEAcompile()
323 dfaparse (pattern, size, dc->dfa); in GEAcompile()
324 kwsmusts (dc); in GEAcompile()
325 dfacomp (NULL, 0, dc->dfa, 1); in GEAcompile()
329 return dc; in GEAcompile()
342 struct dfa_comp *dc = vdc; in EGexecute() local
343 struct dfa *superset = dfasuperset (dc->dfa); in EGexecute()
344 bool dfafast = dfaisfast (dc->dfa); in EGexecute()
361 if (dc->kwset) in EGexecute()
366 ptrdiff_t offset = kwsexec (dc->kwset, beg - dc->begline, in EGexecute()
367 buflim - beg + dc->begline, in EGexecute()
385 exact_kwset_match = kwsm.index < dc->kwset_exact_matches; in EGexecute()
435 next_beg = dfaexec (dc->dfa, dfa_beg, (char *) end, 0, &count, in EGexecute()
472 for (i = 0; i < dc->pcount; i++) in EGexecute()
474 dc->patterns[i].not_eol = 0; in EGexecute()
475 dc->patterns[i].newline_anchor = eolbyte == '\n'; in EGexecute()
476 start = re_search (&dc->patterns[i], beg, end - beg - 1, in EGexecute()
477 ptr - beg, end - ptr - 1, &dc->regs); in EGexecute()
482 len = dc->regs.end[0] - start; in EGexecute()
513 dc->patterns[i].not_eol = 1; in EGexecute()
514 shorter_len = re_match (&dc->patterns[i], beg, in EGexecute()
516 &dc->regs); in EGexecute()
528 dc->patterns[i].not_eol = 0; in EGexecute()
529 start = re_search (&dc->patterns[i], beg, end - beg - 1, in EGexecute()
531 &dc->regs); in EGexecute()
538 len = dc->regs.end[0] - start; in EGexecute()