From 7625e73d5799718ee9cda40a17896a3335e76d6f Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Thu, 29 Jan 2004 04:19:01 +0000 Subject: c-lex.c (c_lex): Rename to... * c-lex.c (c_lex): Rename to... (c_lex_with_flags): Add new parameter to get CPP flags. (c_lex): Thunk to c_lex_with_flags while keeping the old interface. * c-pragma.h (c_lex_with_flags): Declare. From-SVN: r76844 --- gcc/c-lex.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gcc/c-lex.c') diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 5546fc9..4ead0c6 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -324,7 +324,7 @@ get_nonpadding_token (void) } int -c_lex (tree *value) +c_lex_with_flags (tree *value, unsigned char *cpp_flags) { const cpp_token *tok; location_t atloc; @@ -436,9 +436,17 @@ c_lex (tree *value) c_common_no_more_pch (); } + if (cpp_flags) + *cpp_flags = tok->flags; return tok->type; } +int +c_lex (tree *value) +{ + return c_lex_with_flags (value, NULL); +} + /* Returns the narrowest C-visible unsigned type, starting with the minimum specified by FLAGS, that can fit VALUE, or itk_none if there isn't one. */ -- cgit v1.1