summaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-28 23:14:56 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-28 23:14:56 +0000
commit93bfa70bcf217f01a9500c72858a959cad489f49 (patch)
tree8b81b7298d53e223bfdc65067d374f41d92e9076 /gcc/cpplib.c
parentec1d95967451333d9e9633d851a76ac98e7b526a (diff)
downloadgcc-93bfa70bcf217f01a9500c72858a959cad489f49.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52866 138bc75d-0d04-0410-961f-82ee72b054a4
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 a579873c701..b210209b2e7 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;