Lines Matching defs:lines

83 static int	lines;		/* number of lines per page */
221 if (inskip(inf, pgnm, lines))
243 while (linecnt < lines) {
284 if (linecnt && prtail(lines-linecnt-lrgln, lrgln))
348 if ((buf = malloc((unsigned)lines*mxlen*sizeof(char))) == NULL) {
367 mvc = lines * clcnt;
377 if ((lstdat = (char **)malloc((unsigned)lines*sizeof(char *))) == NULL){
383 * fast index lookups to locate start of lines
385 if ((indy = (int *)malloc((unsigned)lines*sizeof(int))) == NULL) {
389 if ((lindy = (int *)malloc((unsigned)lines*sizeof(int))) == NULL) {
402 for (j = 0; j < lines; ++j) {
422 if (inskip(inf, pgnm, lines))
499 if (++j >= lines)
508 * the min number of lines. The last page may not have
577 if (prtail((lines - pln), 0))
586 * determine how many lines to output
589 pln = lines;
613 if (pln && prtail((lines - pln), 0))
688 if (inskip(inf, pgnm, lines))
704 for (i = 0; i < lines; ++i) {
764 if (i && prtail(lines-i, 0))
845 if (pgnm && (inskip(fbuf[j], pgnm, lines)))
901 for (i = 0; i < lines; ++i) {
987 if (i && prtail(lines-i, 0))
1002 * inln(): input a line of data (unlimited length lines supported)
1107 * otln(): output a line of data. (Supports unlimited length lines)
1112 * svips: buffer input column position (for large lines)
1113 * svops: buffer output column position (for large lines)
1247 * inskip(): skip over pgcnt pages with lncnt lines per page
1252 * lncnt number of lines per page
1468 * prtail(): pad page with empty lines (if required) and print page trailer
1471 * cnt number of lines of padding needed
1505 * if an odd number of lines per page, add an extra \n
1688 if (!isdigit((unsigned char)*eoptarg) || ((lines=atoi(eoptarg)) < 1)) {
1690 "pr: number of lines must be 1 or more\n",err);
1819 if (!lines)
1820 lines = LINES;
1825 if (lines <= HEADLEN + TAILLEN)
1828 lines -= HEADLEN + TAILLEN;
1834 if (lines == 1)
1837 if (lines & 1)
1839 lines /= 2;