aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorPer Bothner <pbothner@apple.com>2003-08-26 22:53:22 +0000
committerPer Bothner <bothner@gcc.gnu.org>2003-08-26 15:53:22 -0700
commitdc3786d833bc642b1d7e481eb947c1247eebf6d9 (patch)
tree4ae24f4c9ddb5a1cde65438aa13e8e99b3a74c7e /gcc/cpplib.h
parenta85993787b6d4270ae5447eed498168a1c37642b (diff)
downloadgcc-dc3786d833bc642b1d7e481eb947c1247eebf6d9.zip
gcc-dc3786d833bc642b1d7e481eb947c1247eebf6d9.tar.gz
gcc-dc3786d833bc642b1d7e481eb947c1247eebf6d9.tar.bz2
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
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h6
1 files changed, 3 insertions, 3 deletions
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 *);