aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-03-14 21:47:50 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-03-14 21:47:50 +0000
commit23345bbbcc8dc9c11168d0fd6b2afb415cb6c4e6 (patch)
treef86d032aa7796736ae3b48b9d527b9b116caa900 /gcc/c-lex.c
parent98d2dec7e3268ca0baee90e2d89da4d75fe4c193 (diff)
downloadgcc-23345bbbcc8dc9c11168d0fd6b2afb415cb6c4e6.zip
gcc-23345bbbcc8dc9c11168d0fd6b2afb415cb6c4e6.tar.gz
gcc-23345bbbcc8dc9c11168d0fd6b2afb415cb6c4e6.tar.bz2
/home/neil/diffs/include.log
From-SVN: r64373
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 9e97ad7..7256c5a 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -86,7 +86,6 @@ static int dump_one_header PARAMS ((splay_tree_node, void *));
static void cb_line_change PARAMS ((cpp_reader *, const cpp_token *, int));
static void cb_ident PARAMS ((cpp_reader *, unsigned int,
const cpp_string *));
-static void cb_file_change PARAMS ((cpp_reader *, const struct line_map *));
static void cb_def_pragma PARAMS ((cpp_reader *, unsigned int));
static void cb_define PARAMS ((cpp_reader *, unsigned int,
cpp_hashnode *));
@@ -116,7 +115,6 @@ init_c_lex ()
cb->register_builtins = cb_register_builtins;
cb->line_change = cb_line_change;
cb->ident = cb_ident;
- cb->file_change = cb_file_change;
cb->def_pragma = cb_def_pragma;
cb->valid_pch = c_common_valid_pch;
cb->read_pch = c_common_read_pch;
@@ -131,30 +129,6 @@ init_c_lex ()
}
}
-/* A thin wrapper around the real parser that initializes the
- integrated preprocessor after debug output has been initialized.
- Also, make sure the start_source_file debug hook gets called for
- the primary source file. */
-
-void
-c_common_parse_file (set_yydebug)
- int set_yydebug ATTRIBUTE_UNUSED;
-{
-#if YYDEBUG != 0
- yydebug = set_yydebug;
-#else
- warning ("YYDEBUG not defined");
-#endif
-
- (*debug_hooks->start_source_file) (lineno, input_filename);
- cpp_finish_options (parse_in);
-
- pch_init();
-
- yyparse ();
- free_parser_stacks ();
-}
-
struct c_fileinfo *
get_fileinfo (name)
const char *name;
@@ -245,9 +219,8 @@ cb_line_change (pfile, token, parsing_args)
src_lineno = SOURCE_LINE (map, token->line);
}
-static void
-cb_file_change (pfile, new_map)
- cpp_reader *pfile ATTRIBUTE_UNUSED;
+void
+fe_file_change (new_map)
const struct line_map *new_map;
{
unsigned int to_line = SOURCE_LINE (new_map, new_map->to_line);