changed the main loop a little bit

This commit is contained in:
hyung-hwan 2018-02-20 14:10:09 +00:00
parent e61207291c
commit af67156d1b

View File

@ -1523,7 +1523,6 @@ int main (int argc, char* argv[])
return -1; return -1;
} }
{ {
hcl_oow_t tab_size; hcl_oow_t tab_size;
tab_size = 5000; tab_size = 5000;
@ -1619,14 +1618,14 @@ int main (int argc, char* argv[])
else if (hcl->errnum == HCL_ESYNERR) else if (hcl->errnum == HCL_ESYNERR)
{ {
print_synerr (hcl); print_synerr (hcl);
if (xtn->reader_istty) continue;
} }
else else
{ {
hcl_logbfmt (hcl, HCL_LOG_STDERR, "ERROR: cannot read object - [%d] %js\n", hcl_geterrnum(hcl), hcl_geterrmsg(hcl)); hcl_logbfmt (hcl, HCL_LOG_STDERR, "ERROR: cannot read object - [%d] %js\n", hcl_geterrnum(hcl), hcl_geterrmsg(hcl));
}
if (!xtn->reader_istty) goto oops; }
continue; goto oops;
} }
if (hcl_print(hcl, obj) <= -1) if (hcl_print(hcl, obj) <= -1)