aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2000-12-18 19:00:26 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-12-18 19:00:26 +0000
commiteb1f4d9d2804a8f244a06bff2d22d62906cccbb8 (patch)
treedc29c41d4ea8d368485a05613f91c17d4bec16ea /gcc/c-lex.c
parente2187d3b5278e31a321fae25879d9044248d2287 (diff)
downloadgcc-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/c-lex.c')
-rw-r--r--gcc/c-lex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 072aee7..645661d 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -90,7 +90,7 @@ static tree lex_charconst PARAMS ((const char *, unsigned int, int));
static void update_header_times PARAMS ((const char *));
static int dump_one_header PARAMS ((splay_tree_node, void *));
static void cb_ident PARAMS ((cpp_reader *, const cpp_string *));
-static void cb_change_file PARAMS ((cpp_reader *, const cpp_file_change *));
+static void cb_file_change PARAMS ((cpp_reader *, const cpp_file_change *));
static void cb_def_pragma PARAMS ((cpp_reader *));
const char *
@@ -120,7 +120,7 @@ init_c_lex (filename)
#endif
parse_in->cb.ident = cb_ident;
- parse_in->cb.change_file = cb_change_file;
+ parse_in->cb.file_change = cb_file_change;
parse_in->cb.def_pragma = cb_def_pragma;
if (filename == 0 || !strcmp (filename, "-"))
@@ -226,7 +226,7 @@ cb_ident (pfile, str)
}
static void
-cb_change_file (pfile, fc)
+cb_file_change (pfile, fc)
cpp_reader *pfile ATTRIBUTE_UNUSED;
const cpp_file_change *fc;
{