Lines Matching refs:rbuf
106 static char *rbuf; /* substitute_matching_text buffer */ variable
132 txt = rbuf; in search_and_replace()
133 eot = rbuf + len; in search_and_replace()
186 REALLOC(rbuf, rbufsz, off + i, ERR); in substitute_matching_text()
189 memcpy(rbuf + off, txt, i); in substitute_matching_text()
196 REALLOC(rbuf, rbufsz, off + i, ERR); in substitute_matching_text()
199 memcpy(rbuf + off, txt, i); in substitute_matching_text()
207 REALLOC(rbuf, rbufsz, off + i + 2, ERR); in substitute_matching_text()
214 memcpy(rbuf + off, txt, i); in substitute_matching_text()
215 memcpy(rbuf + off + i, "\n", 2); in substitute_matching_text()
235 REALLOC(rbuf, rbufsz, off + k - j, ERR); in apply_subst_template()
237 rbuf[off++] = boln[j++]; in apply_subst_template()
242 REALLOC(rbuf, rbufsz, off + k - j, ERR); in apply_subst_template()
244 rbuf[off++] = boln[j++]; in apply_subst_template()
246 REALLOC(rbuf, rbufsz, off + 1, ERR); in apply_subst_template()
247 rbuf[off++] = *sub; in apply_subst_template()
249 REALLOC(rbuf, rbufsz, off + 1, ERR); in apply_subst_template()
250 rbuf[off] = '\0'; in apply_subst_template()