diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2000-12-18 19:00:26 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-12-18 19:00:26 +0000 |
commit | eb1f4d9d2804a8f244a06bff2d22d62906cccbb8 (patch) | |
tree | dc29c41d4ea8d368485a05613f91c17d4bec16ea /gcc/cpphash.h | |
parent | e2187d3b5278e31a321fae25879d9044248d2287 (diff) | |
download | gcc-eb1f4d9d2804a8f244a06bff2d22d62906cccbb8.zip gcc-eb1f4d9d2804a8f244a06bff2d22d62906cccbb8.tar.gz gcc-eb1f4d9d2804a8f244a06bff2d22d62906cccbb8.tar.bz2 |
c-lex.c: s/change_file/file_change.
* c-lex.c: s/change_file/file_change.
* cpplib.h: Similarly.
* cppmain.c: Similarly.
* fix-header.c: Similarly.
* cppfiles.c (stack_include_file): Pass the buffer location and
size to cpp_push_buffer. Generate the file_change callback,
so that sysp is already set.
* cpphash.h: Add _cpp_do_file_change.
* cpplib.c (do_line): Set buffer->sysp directly. Generate the
file_change callback after setting sysp.
(_cpp_do_file_change): Handle FC_ENTER and the FC_RENAME exception
here.
(cpp_push_buffer): Don't generate a callback. Clear sysp.
(cpp_pop_buffer): Clean up logic.
From-SVN: r38357
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index a528f91..6cd1621 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -229,6 +229,8 @@ extern void _cpp_do__Pragma PARAMS ((cpp_reader *)); extern void _cpp_init_stacks PARAMS ((cpp_reader *)); extern void _cpp_cleanup_stacks PARAMS ((cpp_reader *)); extern void _cpp_init_internal_pragmas PARAMS ((cpp_reader *)); +extern void _cpp_do_file_change PARAMS ((cpp_reader *, enum cpp_fc_reason, + const char *, unsigned int)); /* Utility routines and macros. */ #define DSC(str) (const U_CHAR *)str, sizeof str - 1 |