Home | History | Annotate | Download | only in cgram

Lines Matching defs:lines

172 static struct stringarray lines;
185 return (int)lines.v[cursor_y].len;
198 return lines.v[cursor_y].s[cursor_x - 1];
208 return lines.v[cursor_y].s[cursor_x];
221 stringarray_add(&lines, &line);
235 stringarray_dup(&sollines, &lines);
237 extent_y = (int)lines.num;
239 extent_x = imax(extent_x, (int)lines.v[i].len);
285 for (char *p = lines.v[y].s; *p != '\0'; p++) {
302 for (int y = 0; y < (int)lines.num; y++) {
303 for (char *p = lines.v[y].s; *p != '\0'; p++) {
319 for (size_t i = 0; i < lines.num; i++)
320 if (strcmp(lines.v[i].s, sollines.v[i].s) != 0)
332 int max_y = imin(LINES - 1, extent_y - offset_y);
336 int len = (int)lines.v[offset_y + y].len;
338 const char *line = lines.v[offset_y + y].s;
355 move(LINES - 1, 0);
359 if (extent_y + 1 - offset_y < LINES - 2)
395 if (cursor_y > offset_y + LINES - 2)
396 offset_y = cursor_y - (LINES - 2);
531 cursor_y -= LINES - 2;
534 cursor_y += LINES - 2;
553 stringarray_init(&lines);
584 move(LINES - 1, 0);
591 stringarray_done(&lines);