Update comment.
[official-gcc.git] / gcc / input.h
blob39590e2eb5e3b3eef1a5542eddca36083237acf8
1 /* Declarations for variables relating to reading the source file.
2 Used by parsers, lexical analyzers, and error message routines.
4 Copyright (C) 1993 Free Software Foundation, Inc.
6 This file is part of GNU CC.
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING. If not, write to
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
22 /* Source file current line is coming from. */
23 extern char *input_filename;
25 /* Top-level source file. */
26 extern char *main_input_filename;
28 /* Line number in current source file. */
29 extern int lineno;
31 /* Stream for reading from input file. */
32 extern FILE *finput;
34 struct file_stack
36 char *name;
37 struct file_stack *next;
38 int line;
41 /* Stack of currently pending input files.
42 The line member is not accurate for the innermost file on the stack. */
43 extern struct file_stack *input_file_stack;
45 /* Incremented on each change to input_file_stack. */
46 extern int input_file_stack_tick;