Home | History | Annotate | Download | only in src

Lines Matching refs:line

60   int line = cur->line;
72 line += line < INT_MAX;
87 cur->line = line;
92 if (line == INT_MAX && loc->start.line != INT_MAX)
93 warn_at (*loc, _("line number overflow"));
108 if (0 <= loc.start.line)
110 res += fprintf (out, ":%d", loc.start.line);
119 if (0 <= loc.end.line)
121 res += fprintf (out, ":%d", loc.end.line);
126 else if (0 <= loc.end.line)
128 if (loc.start.line < loc.end.line)
130 res += fprintf (out, "-%d", loc.end.line);
147 size_t line;
167 || loc.start.column == -1 || loc.start.line == -1)
170 /* If the line we want to quote is seekable (the same line as the previous
173 if (caret_info.line <= loc.start.line)
177 caret_info.line = 1;
182 /* Advance to the line's position, keeping track of the offset. */
183 while (caret_info.line < loc.start.line)
184 caret_info.line += fgetc (caret_info.source) == '\n';
187 /* Read the actual line. Don't update the offset, so that we keep a pointer
188 to the start of the line. */
195 /* The caret of a multiline location ends with the first line. */
196 int end = loc.start.line != loc.end.line ? len : loc.end.column;
228 bound->line = atoi (delim+1);