Lines Matching full:current
67 static struct input_stream *current; /* the input_stream being parsed. */ variable
90 * New character c from current input stream, or EOF at end of stream. */
92 current->ptr < current->end ? *current->ptr++ : grab_new_line_and_readchar()
95 * consumed the current line and returns the first char, or EOF at end of
99 * Skips to the end of the current line, returns either '\n' or EOF. */
201 origin.fname = current->origin.fname; in Parse_FromString()
206 Lst_Push(&input_stack, current); in Parse_FromString()
207 assert(current != NULL); in Parse_FromString()
208 current = new_input_string(str, &origin); in Parse_FromString()
215 if (current != NULL) in Parse_FromFile()
216 Lst_Push(&input_stack, current); in Parse_FromFile()
217 current = new_input_file(name, stream); in Parse_FromFile()
223 if (current != NULL) in Parse_NextFile()
224 free_input_stream(current); in Parse_NextFile()
225 current = Lst_Pop(&input_stack); in Parse_NextFile()
226 return current != NULL; in Parse_NextFile()
234 if (current->F) { in grab_new_line_and_readchar()
235 current->ptr = fgetln(current->F, &len); in grab_new_line_and_readchar()
236 if (current->ptr) { in grab_new_line_and_readchar()
237 current->end = current->ptr + len; in grab_new_line_and_readchar()
238 return *current->ptr++; in grab_new_line_and_readchar()
240 current->end = NULL; in grab_new_line_and_readchar()
249 if (current->F) { in skip_to_end_of_line()
250 if (current->end - current->ptr > 1) in skip_to_end_of_line()
251 current->ptr = current->end - 1; in skip_to_end_of_line()
252 if (*current->ptr == '\n') in skip_to_end_of_line()
253 return *current->ptr++; in skip_to_end_of_line()
277 current->origin.lineno++; in Parse_ReadNextConditionalLine()
283 current->origin.lineno++; in Parse_ReadNextConditionalLine()
295 current->origin.lineno++; in read_logical_line()
306 current->origin.lineno++; in read_logical_line()
338 current->origin.lineno++; in Parse_ReadUnparsedLine()
361 int c; /* the current character */ in skip_empty_lines_and_read_char()
374 current->origin.lineno++; in skip_empty_lines_and_read_char()
405 current->origin.lineno++; in skip_empty_lines_and_read_char()
423 current->origin.lineno++; in skip_empty_lines_and_read_char()
442 int c; /* the current character */ in Parse_ReadNormalLine()
457 return current ? current->origin.lineno : 0; in Parse_Getlineno()
463 return current ? current->origin.fname : NULL; in Parse_Getfilename()
489 assert(current == NULL); in Parse_ReportErrors()