Lines Matching refs:expbuf
103 compile(const char *instr, char *expbuf, char *endbuf) in compile() argument
105 return (dhl_compile(instr, expbuf, endbuf)); in compile()
109 step(const char *instr, const char *expbuf) in step() argument
111 return (dhl_step(instr, expbuf)); in step()
115 advance(const char *instr, const char *expbuf) in advance() argument
117 return (dhl_advance(instr, expbuf)); in advance()
141 dhl_compile(instr, expbuf, endbuf) in dhl_compile() argument
143 char *expbuf; /* where the compiled RE gets placed */
159 if (expbuf == NULL) {
160 if ((expbuf = malloc(regexc_size)) == NULL) {
166 endbuf = expbuf + regexc_size;
168 if (expbuf + regexc_size > endbuf) {
172 memcpy(®_comp, expbuf, regexc_size);
234 (void) memcpy(expbuf, (char *) ®_comp, regexc_size);
245 free(expbuf);
251 return (expbuf);
253 return (expbuf + regexc_size);