Lines Matching defs:expbuf
34 * Returns expbuf in dhl format (encoding of first two bytes).
103 compile(const char *instr, char *expbuf, char *endbuf)
105 return (dhl_compile(instr, expbuf, endbuf));
109 step(const char *instr, const char *expbuf)
111 return (dhl_step(instr, expbuf));
115 advance(const char *instr, const char *expbuf)
117 return (dhl_advance(instr, expbuf));
124 * that expbuf[] consists of the following format:
130 * vi. apparently expbuf[0] is set to:
134 * and expbuf[1-35+] = bitmap of the type of RE chars in the expression.
136 * Here, we use expbuf[0] in a similar fashion; and expbuf[1] is non-zero
141 dhl_compile(instr, expbuf, endbuf)
143 char *expbuf; /* where the compiled RE gets placed */
144 char *endbuf; /* ending addr of expbuf */
157 * Check values of expbuf and endbuf
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);
232 * Copy our reg_comp structure to expbuf
234 (void) memcpy(expbuf, (char *) ®_comp, regexc_size);
245 free(expbuf);
251 return (expbuf);
253 return (expbuf + regexc_size);