From 60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 15 Aug 2021 00:34:05 -0400 Subject: Added gcc --- gcc-1.40/input.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gcc-1.40/input.h (limited to 'gcc-1.40/input.h') diff --git a/gcc-1.40/input.h b/gcc-1.40/input.h new file mode 100644 index 0000000..270f267 --- /dev/null +++ b/gcc-1.40/input.h @@ -0,0 +1,22 @@ +/* Source file current line is coming from. */ +extern char *input_filename; + +/* Top-level source file. */ +extern char *main_input_filename; + +/* Line number in current source file. */ +extern int lineno; + +struct file_stack + { + char *name; + struct file_stack *next; + int line; + }; + +/* Stack of currently pending input files. + The line member is not accurate for the innermost file on the stack. */ +extern struct file_stack *input_file_stack; + +/* Incremented on each change to input_file_stack. */ +extern int input_file_stack_tick; -- cgit v1.2.3