diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-04-28 23:14:56 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-04-28 23:14:56 +0000 |
commit | 60284a5928b20fe9380a361c3d61aa9c890ae7b0 (patch) | |
tree | 8b81b7298d53e223bfdc65067d374f41d92e9076 /libjava/java | |
parent | 349a4b40eb462ffe806c9aafa8792e5ef5ab00a2 (diff) | |
download | gcc-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 'libjava/java')
0 files changed, 0 insertions, 0 deletions