diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-17 00:13:54 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-17 00:13:54 +0000 |
commit | f0c20935793936f286587ca5f6171f7524fb5778 (patch) | |
tree | dc9788c071208bc6125b57c49a68337f6a09eb53 /gcc/cpplib.h | |
parent | d9953e000d67e404387efa5d86f037b59f890f7c (diff) | |
download | ppe42-gcc-f0c20935793936f286587ca5f6171f7524fb5778.tar.gz ppe42-gcc-f0c20935793936f286587ca5f6171f7524fb5778.zip |
* c-lex.c: Move main_input_filename handling to FC_ENTER. Clean up.
* cpperror.c (print_containing_files): Get right line number.
(print_location): Output column of 1 if 0.
* cppfiles.c (stack_include_file): cpp_push_buffer handles
the callback.
* cpphash.h (_cpp_do_file_change): No longer external.
* cpplib.c (do_file_change): Now local to cpplib.c.
(do_line): Fake a buffer stack for preprocessed files.
(cpp_push_buffer): Create a file_change callback. Handle faked
buffers.
(cpp_pop_buffer): Similarly.
* cpplib.h: BUF_FAKE: New buffer type.
* cppmain.c: Update to handle correct file renaming where a
#line is the first line of the main file, and produce only
the renamed file, not the original file, as output.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38319 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 552631b33f0..4c4b7e3a320 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -633,9 +633,10 @@ struct cpp_reader /* Name under which this program was invoked. */ extern const char *progname; -/* Where does this buffer come from? A file, a builtin macro, a - command-line option, or a _Pragma operator. */ -enum cpp_buffer_type {BUF_FILE, BUF_BUILTIN, BUF_CL_OPTION, BUF_PRAGMA}; +/* Where does this buffer come from? A faked include, a source file, + a builtin macro, a command-line option, or a _Pragma operator. */ +enum cpp_buffer_type {BUF_FAKE, BUF_FILE, BUF_BUILTIN, + BUF_CL_OPTION, BUF_PRAGMA}; /* The structure of a node in the hash table. The hash table has entries for all identifiers: either macros defined by #define |