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