Lines Matching defs:linebuf

25 static char *linebuf = NULL;	/* Buffer which holds the current output line */
26 static char *attr = NULL; /* Extension of linebuf to hold attributes */
36 static int curr; /* Index into linebuf */
92 linebuf = (char *) ecalloc(LINEBUF_SIZE, sizeof(char));
108 char *new_buf = (char *) realloc(linebuf, new_size);
134 memcpy(new_buf, linebuf, size_linebuf * sizeof(char));
137 free(linebuf);
139 linebuf = new_buf;
185 linebuf[n] = ch;
219 * {{ Since forw_raw_line modifies linebuf, we must
220 * do this first, before storing anything in linebuf. }}
305 c = linebuf[from];
309 linebuf[to] = c;
311 while (from < curr && linebuf[from])
313 linebuf[to] = linebuf[from];
315 if (!is_ansi_middle(linebuf[from++]))
331 ch = get_wchar(linebuf + from);
354 prev_ch = linebuf[to++] = ' ';
386 linebuf[to] = linebuf[from];
525 char *p = linebuf + curr;
526 LWCHAR ch = step_char(&p, -1, linebuf + lmargin);
529 /* This assumes that there is no '\b' in linebuf. */
534 curr = (int) (p - linebuf);
535 prev_ch = step_char(&p, -1, linebuf + lmargin);
558 for (p = &linebuf[curr]; p > linebuf; )
560 LWCHAR ch = step_char(&p, -1, linebuf);
659 char *p = &linebuf[curr];
662 bch = step_char(&p, -1, linebuf);
663 } while (p > linebuf && !IS_CSI_START(bch));
664 curr = (int) (p - linebuf);
677 char *p = &linebuf[curr];
678 LWCHAR prev_ch = step_char(&p, -1, linebuf);
897 linebuf[curr] = '\0';
954 prev_ch = get_wchar(linebuf + curr);
957 prev_ch = (unsigned char) linebuf[curr];
983 rep = linebuf + curr;
992 || is_combining_char(get_wchar(linebuf + curr), ch))
1211 return (linebuf[i] & 0xFF);
1263 linebuf[n++] = c;
1266 linebuf[n] = '\0';
1268 *linep = linebuf;
1293 linebuf[--n] = '\0';
1331 * Shift the data to the end of the new linebuf.
1333 for (fm = linebuf + old_size_linebuf - 1,
1334 to = linebuf + size_linebuf - 1;
1335 fm >= linebuf; fm--, to--)
1339 linebuf[--n] = c;
1342 *linep = &linebuf[n];