Home | History | Annotate | Download | only in pr

Lines Matching refs:lines

93 static int	lines;			/* number of lines per page */
225 if (inskip(inf, pgnm, lines))
245 while (linecnt < lines) {
291 if (linecnt && prtail(lines-linecnt-lrgln, lrgln))
358 if ((buf = malloc((unsigned)lines*mxlen*sizeof(char))) == NULL)
373 mvc = lines * clcnt;
380 if ((lstdat = malloc((unsigned)lines*sizeof(char *))) == NULL)
384 * fast index lookups to locate start of lines
386 if ((indy = malloc((unsigned)lines*sizeof(int))) == NULL)
388 if ((lindy = malloc((unsigned)lines*sizeof(int))) == NULL)
399 for (j = 0; j < lines; ++j) {
419 if (inskip(inf, pgnm, lines))
494 if (++j >= lines)
503 * the min number of lines. The last page may not have
576 if (prtail((lines - pln), 0))
585 * determine how many lines to output
588 pln = lines;
617 if (pln && prtail((lines - pln), 0))
692 if (inskip(inf, pgnm, lines))
706 for (i = 0; i < lines; ++i) {
771 if (i && prtail(lines-i, 0))
851 if (pgnm && (inskip(fbuf[j], pgnm, lines)))
903 for (i = 0; i < lines; ++i) {
994 if (i && prtail(lines-i, 0))
1017 * inln(): input a line of data (unlimited length lines supported)
1122 * otln(): output a line of data. (Supports unlimited length lines)
1127 * svips: buffer input column position (for large lines)
1128 * svops: buffer output column position (for large lines)
1262 * inskip(): skip over pgcnt pages with lncnt lines per page
1267 * lncnt number of lines per page
1513 * prtail(): pad page with empty lines (if required) and print page trailer
1516 * cnt number of lines of padding needed
1543 * if an odd number of lines per page, add an extra \n
1731 ((lines=atoi(eoptarg)) < 1)) {
1733 "pr: Number of lines must be 1 or more\n",errf);
1865 if (!lines)
1866 lines = LINES;
1871 if (lines <= HEADLEN + TAILLEN)
1874 lines -= HEADLEN + TAILLEN;
1880 if (lines == 1)
1883 if (lines & 1)
1885 lines /= 2;