diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-08-04 16:28:14 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-08-04 16:28:14 +0000 |
commit | 8bbbef343486eea56bb5c9ebf241c0872e4083b3 (patch) | |
tree | d9a94dd57cbcb162a1616b5fe4623e5c76a95412 /gcc/cpphash.h | |
parent | 95146dd651f1e96713c9eaeaa14bc61362b3f2f4 (diff) | |
download | gcc-8bbbef343486eea56bb5c9ebf241c0872e4083b3.zip gcc-8bbbef343486eea56bb5c9ebf241c0872e4083b3.tar.gz gcc-8bbbef343486eea56bb5c9ebf241c0872e4083b3.tar.bz2 |
cpphash.h (struct cpp_reader): New member directive_line.
* 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.
From-SVN: r44637
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index b1d0325..1abeb57 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -261,6 +261,7 @@ struct cpp_reader /* The position of the last lexed token and last lexed directive. */ cpp_lexer_pos lexer_pos; cpp_lexer_pos directive_pos; + unsigned int directive_line; /* Memory pools. */ cpp_pool ident_pool; /* For all identifiers, and permanent |