From 36a0aa7ca717583de4d0d2eda4ab721ed5907cdb Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 1 Aug 2001 06:19:39 +0000 Subject: * cpphash.h (struct cpp_reader): New members line, pseudo_newlines. * cpplex.c (handle_newline): Update prototype. Maintain logical line number. (skip_escaped_newlines, skip_block_comment, parse_string): Update accordingly. (_cpp_lex_token): Update, and store token position within the token. * cpplib.h (struct cpp_token): Add line and column entries. * cppmacro.c (replace_args): Position stringified tokens correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44533 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 58e4af60316..fb7fac276db 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -172,6 +172,8 @@ struct cpp_string occupy 12 bytes on 32-bit hosts and 16 bytes on 64-bit hosts. */ struct cpp_token { + unsigned int line; /* Logical line of first char of token. */ + unsigned short col; /* Column of first char of token. */ ENUM_BITFIELD(cpp_ttype) type : CHAR_BIT; /* token type */ unsigned char flags; /* flags - see above */ -- cgit v1.2.3