summaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
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/cpphash.h
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/cpphash.h')
-rw-r--r--gcc/cpphash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 743feeae89c..5ad0c6e1a31 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -413,7 +413,7 @@ extern void _cpp_init_tokenrun PARAMS ((tokenrun *, unsigned int));
extern void _cpp_maybe_push_include_file PARAMS ((cpp_reader *));
/* In cpplib.c */
-extern int _cpp_test_assertion PARAMS ((cpp_reader *, int *));
+extern int _cpp_test_assertion PARAMS ((cpp_reader *, unsigned int *));
extern int _cpp_handle_directive PARAMS ((cpp_reader *, int));
extern void _cpp_define_builtin PARAMS ((cpp_reader *, const char *));
extern void _cpp_do__Pragma PARAMS ((cpp_reader *));