aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-04-28 23:14:56 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-04-28 23:14:56 +0000
commit60284a5928b20fe9380a361c3d61aa9c890ae7b0 (patch)
tree8b81b7298d53e223bfdc65067d374f41d92e9076 /gcc/cpplib.c
parent349a4b40eb462ffe806c9aafa8792e5ef5ab00a2 (diff)
downloadgcc-60284a5928b20fe9380a361c3d61aa9c890ae7b0.zip
gcc-60284a5928b20fe9380a361c3d61aa9c890ae7b0.tar.gz
gcc-60284a5928b20fe9380a361c3d61aa9c890ae7b0.tar.bz2
cppexp.c (lex): Move some code to _cpp_parse_expr, but keep most cases as function eval_token.
* cppexp.c (lex): Move some code to _cpp_parse_expr, but keep most cases as function eval_token. (eval_token): New function. (_cpp_parse_expr): Read token here for improved diagnostics. Don't use op_as_text. Detect bad ':' here. (reduce): Don't detect bad ':' here. (op_as_text): Remove. * cpphash.h (_cpp_test_assertion): Change prototype. * cpplib.c (_cpp_test_assertion): Change prototype. testsuite: * gcc.dg/cpp/if-cexp.c: Add a test. From-SVN: r52866
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index a579873..b210209 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -1652,7 +1652,7 @@ find_answer (node, candidate)
int
_cpp_test_assertion (pfile, value)
cpp_reader *pfile;
- int *value;
+ unsigned int *value;
{
struct answer *answer;
cpp_hashnode *node;