am 119dcd84: Merge change 25859 into eclair
Merge commit '119dcd8400b33241a6081b2f4ba4e3a8764896d7' into eclair-plus-aosp
* commit '119dcd8400b33241a6081b2f4ba4e3a8764896d7':
Improve error-handling when an expected token is missing.
diff --git a/libacc/acc.cpp b/libacc/acc.cpp
index 436f806..6d9213c 100644
--- a/libacc/acc.cpp
+++ b/libacc/acc.cpp
@@ -4537,10 +4537,9 @@
}
void skip(intptr_t c) {
- if (tok != c) {
+ if (!accept(c)) {
error("'%c' expected", c);
}
- next();
}
bool accept(intptr_t c) {