From f8d396cdeac903221bb452637843d2a89c59b989 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 4 Aug 2001 16:28:14 +0000 Subject: * cpphash.h (struct cpp_reader): New member directive_line. * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks. * cpplib.c (do_define, do_undef, do_ident, do_include_common, do_pragma): Pass line to callbacks. (start_directive): Record line of directive. * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma, cb_include): Similarly. * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma): Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44637 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 31c01e72c4f..937e6047693 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -401,12 +401,12 @@ struct cpp_file_change struct cpp_callbacks { void (*file_change) PARAMS ((cpp_reader *, const cpp_file_change *)); - void (*include) PARAMS ((cpp_reader *, const unsigned char *, - const cpp_token *)); - void (*define) PARAMS ((cpp_reader *, cpp_hashnode *)); - void (*undef) PARAMS ((cpp_reader *, cpp_hashnode *)); - void (*ident) PARAMS ((cpp_reader *, const cpp_string *)); - void (*def_pragma) PARAMS ((cpp_reader *)); + void (*include) PARAMS ((cpp_reader *, unsigned int, + const unsigned char *, const cpp_token *)); + void (*define) PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *)); + void (*undef) PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *)); + void (*ident) PARAMS ((cpp_reader *, unsigned int, const cpp_string *)); + void (*def_pragma) PARAMS ((cpp_reader *, unsigned int)); }; #define CPP_FATAL_LIMIT 1000 -- cgit v1.2.3