Lines Matching refs:newlen
248 static char *extend_string(char **old, char *new, int oldlen, int newlen) in extend_string() argument
250 int newline = newlen < 0; in extend_string()
253 if (newline) newlen = -newlen; in extend_string()
254 s = *old = xrealloc(*old, oldlen+newlen+newline+1); in extend_string()
256 memcpy(s+oldlen, new, newlen); in extend_string()
257 s[oldlen+newlen] = 0; in extend_string()
259 return s+oldlen+newlen+1; in extend_string()
490 int mflags = 0, count = 0, zmatch = 1, rlen = len, mlen, off, newlen; in walk_pattern() local
518 for (off = newlen = 0; new[off]; off++) { in walk_pattern()
524 newlen++; in walk_pattern()
527 newlen += match[cc].rm_eo-match[cc].rm_so; in walk_pattern()
532 len += newlen-mlen; in walk_pattern()
536 memcpy(rswap+newlen, rline+match[0].rm_eo, (rlen -= match[0].rm_eo)+1); in walk_pattern()
561 rline = rswap+newlen; in walk_pattern()