diff options
author | Doug Zongker <dougz@android.com> | 2014-02-18 18:48:19 +0100 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-02-18 18:48:19 +0100 |
commit | f2ff0a2097cd945a612fb461741b803d2b5aca7a (patch) | |
tree | 7bc57a86cbf178d77f4790f76fa2e59d69defa7a /edify/main.c | |
parent | Merge "Fix a crash when going into recovery mode." (diff) | |
parent | clean up some warnings when building recovery (diff) | |
download | android_bootable_recovery-f2ff0a2097cd945a612fb461741b803d2b5aca7a.tar android_bootable_recovery-f2ff0a2097cd945a612fb461741b803d2b5aca7a.tar.gz android_bootable_recovery-f2ff0a2097cd945a612fb461741b803d2b5aca7a.tar.bz2 android_bootable_recovery-f2ff0a2097cd945a612fb461741b803d2b5aca7a.tar.lz android_bootable_recovery-f2ff0a2097cd945a612fb461741b803d2b5aca7a.tar.xz android_bootable_recovery-f2ff0a2097cd945a612fb461741b803d2b5aca7a.tar.zst android_bootable_recovery-f2ff0a2097cd945a612fb461741b803d2b5aca7a.zip |
Diffstat (limited to 'edify/main.c')
-rw-r--r-- | edify/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/edify/main.c b/edify/main.c index 9e6bab7ca..b3fad53b8 100644 --- a/edify/main.c +++ b/edify/main.c @@ -30,9 +30,7 @@ int expect(const char* expr_str, const char* expected, int* errors) { printf("."); - yy_scan_string(expr_str); - int error_count = 0; - error = yyparse(&e, &error_count); + int error_count = parse_string(expr_str, &e, &error_count); if (error > 0 || error_count > 0) { printf("error parsing \"%s\" (%d errors)\n", expr_str, error_count); @@ -193,8 +191,7 @@ int main(int argc, char** argv) { Expr* root; int error_count = 0; - yy_scan_bytes(buffer, size); - int error = yyparse(&root, &error_count); + int error = parse_string(buffer, &root, &error_count); printf("parse returned %d; %d errors encountered\n", error, error_count); if (error == 0 || error_count > 0) { |