From dc3786d833bc642b1d7e481eb947c1247eebf6d9 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Tue, 26 Aug 2003 22:53:22 +0000 Subject: Copy over from cs branch: * cpplib.h (struct cpp_token): Change type of field line to fileline. (cpp_error_with_line): Use fileline for appropriate parameter. * cpphash.h (struct cpp_macro): Change type of field line to fileline. (struct cpp_reader): Likewise for fields line and directive_line. (_cpp_begin_message): Use fileline for appropriate parameter. * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line, cpp_error): Use fileline for appropriate parameters and variables. (print_location): New local lin, since it is not a fileline. From-SVN: r70826 --- gcc/cpplib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index b63f363..fdd9a4e 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -174,7 +174,7 @@ struct cpp_string occupy 16 bytes on 32-bit hosts and 24 bytes on 64-bit hosts. */ struct cpp_token { - unsigned int line; /* Logical line of first char of token. */ + fileline 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 */ @@ -680,8 +680,8 @@ extern void cpp_errno (cpp_reader *, int, const char *msgid); /* Same as cpp_error, except additionally specifies a position as a (translation unit) physical line and physical column. If the line is zero, then no location is printed. */ -extern void cpp_error_with_line (cpp_reader *, int, unsigned, unsigned, const char *msgid, ...) - ATTRIBUTE_PRINTF_5; +extern void cpp_error_with_line (cpp_reader *, int, fileline, unsigned, + const char *msgid, ...) ATTRIBUTE_PRINTF_5; /* In cpplex.c */ extern int cpp_ideq (const cpp_token *, const char *); -- cgit v1.1