diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-21 06:20:18 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-21 06:20:18 +0000 |
| commit | fe56063735d5ada48f5157d27ba21c2e1e9496f3 (patch) | |
| tree | d3294a0e95ec060c7d36c19a66723166c94ce0f9 /gcc/cpphash.h | |
| parent | 42938542aa5068c3fcabd6cfcebc823a05490be5 (diff) | |
| download | ppe42-gcc-fe56063735d5ada48f5157d27ba21c2e1e9496f3.tar.gz ppe42-gcc-fe56063735d5ada48f5157d27ba21c2e1e9496f3.zip | |
* cpphash.h (_cpp_push_next_buffer): New.
* cppinit.c (do_includes): Remove.
(push_include, free_chain, _cpp_push_next_buffer): New.
(cpp_start_read): Use them to rework command line option handling.
(cpp_handle_option): Combine handling of -include and -imacros.
* cpplex.c (_cpp_lex_token): Push a new -include buffer if
appropriate. Always insert missing \n at EOF.
* cpplib.c (start_directive): Get the directive position right.
* cppmain.c (cb_file_change): Always print the first line, unless
preprocessed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45070 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.h')
| -rw-r--r-- | gcc/cpphash.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 0a24f4d6c5c..f530e5596ea 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -419,6 +419,9 @@ extern unsigned char *_cpp_next_chunk PARAMS ((cpp_pool *, unsigned int, extern void _cpp_lock_pool PARAMS ((cpp_pool *)); extern void _cpp_unlock_pool PARAMS ((cpp_pool *)); +/* In cppinit.c. */ +extern bool _cpp_push_next_buffer PARAMS ((cpp_reader *)); + /* In cpplib.c */ extern int _cpp_test_assertion PARAMS ((cpp_reader *, int *)); extern int _cpp_handle_directive PARAMS ((cpp_reader *, int)); |

