aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
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/cpphash.h
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/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 743feea..5ad0c6e 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 *));