diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-04 16:28:14 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-04 16:28:14 +0000 |
commit | f8d396cdeac903221bb452637843d2a89c59b989 (patch) | |
tree | d9a94dd57cbcb162a1616b5fe4623e5c76a95412 /gcc/cpplib.h | |
parent | edbd9f4cce37c1f3336d8390ffb01e6d6145ab24 (diff) | |
download | gcc-f8d396cdeac903221bb452637843d2a89c59b989.tar.gz |
* 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
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 |