commit | 119dcd8400b33241a6081b2f4ba4e3a8764896d7 | [log] [tgz] |
---|---|---|
author | Android (Google) Code Review <android-gerrit@google.com> | Fri Sep 18 19:26:43 2009 -0400 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Sep 18 19:26:43 2009 -0400 |
tree | e109c1041047b3607d30c0a898213582354238c1 | |
parent | bb6f68c63d79bf58bd53f463de1bd23d49e5b8a4 [diff] | |
parent | b13d4e857a761d42ebbaece2bafd7799c875686e [diff] |
Merge change 25859 into eclair * changes: 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) {