Home
last modified time | relevance | path

Searched refs:nlines (Results 1 – 3 of 3) sorted by relevance

/coreutils/src/
Dhead.c505 size_t nlines; in elide_tail_lines_pipe() member
516 first->nbytes = first->nlines = 0; in elide_tail_lines_pipe()
537 tmp->nlines = 0; in elide_tail_lines_pipe()
548 ++tmp->nlines; in elide_tail_lines_pipe()
551 total_lines += tmp->nlines; in elide_tail_lines_pipe()
560 last->nlines += tmp->nlines; in elide_tail_lines_pipe()
570 if (n_elide < total_lines - first->nlines) in elide_tail_lines_pipe()
575 total_lines -= first->nlines; in elide_tail_lines_pipe()
596 ++last->nlines; in elide_tail_lines_pipe()
600 for (tmp = first; n_elide < total_lines - tmp->nlines; tmp = tmp->next) in elide_tail_lines_pipe()
[all …]
Dsort.c192 size_t nlines; /* Number of lines in the line array. */ member
1597 buf->used = buf->left = buf->nlines = 0; in initbuf()
1776 buf->nlines = 0; in fillbuf()
1783 struct line *line = linelim - buf->nlines; in fillbuf()
1784 size_t avail = (char *) linelim - buf->nlines * line_bytes - ptr; in fillbuf()
1785 char *line_start = buf->nlines ? line->text + line->length : buf->buf; in fillbuf()
1856 buf->nlines = buffer_linelim (buf) - line; in fillbuf()
1857 if (buf->nlines != 0) in fillbuf()
2917 struct line const *linebase = line - buf.nlines; in check()
2947 line_number += buf.nlines; in check()
[all …]
Dtail.c612 size_t nlines; in pipe_lines() member
622 first->nbytes = first->nlines = 0; in pipe_lines()
634 tmp->nlines = 0; in pipe_lines()
644 ++tmp->nlines; in pipe_lines()
647 total_lines += tmp->nlines; in pipe_lines()
656 last->nlines += tmp->nlines; in pipe_lines()
666 if (total_lines - first->nlines > n_lines) in pipe_lines()
669 total_lines -= first->nlines; in pipe_lines()
697 ++last->nlines; in pipe_lines()
703 for (tmp = first; total_lines - tmp->nlines > n_lines; tmp = tmp->next) in pipe_lines()
[all …]