Lines Matching defs:line

108 struct line {			/* how line addresses are stored */
110 off_t l_no; /* line number in file */
113 typedef struct line LINE;
115 static LINE *zero = NULL, /* first line */
116 *dot, /* current line */
117 *dol, /* last line */
152 static int initopt = 0; /* set if the line option is used */
181 static short doliseof; /* set when last line of file is known */
182 static off_t eofl_no; /* what the last line of the file is */
638 case 'l': /* get a line */
651 case 0: /* leave addressed line at top */
1067 " l next line\n"
1090 * Skip nskip files in the file list (from the command line). Nskip may be
1312 * find -- find line in file f, subject to certain constraints.
1319 * handles. Either line is zero, which means there is to be
1320 * no motion (because line numbers start at one), or
1321 * how and line specify a number, or line itself is negative,
1322 * which is the same as having how == -1 and line == abs(line).
1325 * line number). Find out if it is within what we have read,
1330 * In any case, return the line number that we end up at.
1336 * If the requested line number is too far back, return BOF.
1340 find(how, line) /* find the line and seek there */
1342 off_t line;
1349 where = line;
1352 where = how * line;
1354 where = how * line + dot->l_no;
1414 * Get a logical line
1440 if (p > Line) { /* last line doesn't have '\n', */
1481 if (c != '\n') { /* We're stopping in the middle of the line */
1545 lineset(how) /* initialize line memory */
1570 /* assumes that f is currently at beginning of said line */
1845 "Usage: pg [-number] [-p string] [-cefnrs] [+line] [+/pattern/] files\n"));