summaryrefslogtreecommitdiffstats
path: root/edify/main.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-15 05:49:32 +0200
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-15 05:49:32 +0200
commitcf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3 (patch)
tree5147d4b4add3e2dc17f5404254e8ef3be80fd23c /edify/main.c
parentam 9dbc027b: fix sim build in donut, too (diff)
parentedify extensions for OTA package installation, part 2 (diff)
downloadandroid_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.gz
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.bz2
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.lz
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.xz
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.zst
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.zip
Diffstat (limited to 'edify/main.c')
-rw-r--r--edify/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/edify/main.c b/edify/main.c
index c95968376..7da89e2ea 100644
--- a/edify/main.c
+++ b/edify/main.c
@@ -153,10 +153,11 @@ int main(int argc, char** argv) {
buffer[size] = '\0';
Expr* root;
+ int error_count = 0;
yy_scan_bytes(buffer, size);
- int error = yyparse(&root);
- printf("parse returned %d\n", error);
- if (error == 0) {
+ int error = yyparse(&root, &error_count);
+ printf("parse returned %d; %d errors encountered\n", error, error_count);
+ if (error == 0 || error_count > 0) {
char* result = Evaluate(NULL, root);
if (result == NULL) {
char* errmsg = GetError();