Lines Matching refs:expbuf
102 compile(const char *instr, char *expbuf, char *endbuf) in compile() argument
104 return (dhl_compile(instr, expbuf, endbuf)); in compile()
108 step(const char *instr, const char *expbuf) in step() argument
110 return (dhl_step(instr, expbuf)); in step()
114 advance(const char *instr, const char *expbuf) in advance() argument
116 return (dhl_advance(instr, expbuf)); in advance()
141 char *expbuf, /* where the compiled RE gets placed */ in dhl_compile() argument
157 if (expbuf == NULL) { in dhl_compile()
158 if ((expbuf = malloc(regexc_size)) == NULL) { in dhl_compile()
164 endbuf = expbuf + regexc_size; in dhl_compile()
166 if (expbuf + regexc_size > endbuf) { in dhl_compile()
170 memcpy(®_comp, expbuf, regexc_size); in dhl_compile()
232 (void) memcpy(expbuf, (char *)®_comp, regexc_size); in dhl_compile()
243 free(expbuf); in dhl_compile()
249 return (expbuf); in dhl_compile()
251 return (expbuf + regexc_size); in dhl_compile()