Lines Matching refs:line

53 static int getentry LESSPARAMS((char *buf, char **tag, char **file, char **line));
58 * Use either pattern or line number.
59 * findgtag() always uses line number, so pattern is always NULL.
60 * findctag() uses either pattern (in which case line number is 0),
61 * or line number (in which case pattern is NULL).
70 LINENUM tag_linenum; /* Appropriate line number in source file */
309 * The line contains the tag, the filename and the
311 * The location is either a decimal line number,
313 * Parse the line and extract these parts.
339 * First see if it is a line number.
391 curtag_match(char const *line, POSITION linepos)
394 * Test the line to see if we have a match.
398 * the way to end of line (no extra chars after the match).
401 if (strncmp(curtag->tag_pattern, line, len) == 0 &&
402 (!curtag->tag_endline || line[len] == '\0' || line[len] == '\r'))
425 char *line;
441 * Read the next line, and save the
442 * starting position of that line in linepos.
445 pos = forw_raw_line(pos, &line, &line_len);
459 * If we're using line numbers, we might as well
461 * and line number of the current line).
468 if (curtag_match(line, linepos))
476 cvt_text(cline, line, chpos, &line_len, cvt_ops);
570 char *name, *file, *line;
592 if (getentry(buf, &name, &file, &line))
595 * Couldn't parse this line for some reason.
602 tp = maketagent(name, file, (LINENUM) atoi(line), NULL, 0);
726 * The tag, file, and line will each be NUL-terminated pointers
730 getentry(buf, tag, file, line)
734 char **line; /* line number of file where this tag is found */
760 *line = p; /* line number */
761 for (*line = p; *p && !IS_SPACE(*p); p++)
778 if (strlen(*tag) && strlen(*line) && strlen(*file) && atoi(*line) > 0)