added hcl_seterrumsg() and hcl_seterrbfmt() in case the caller can't use variadic arguments
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-29 01:49:13 +09:00
parent ce47037b79
commit 0845e12a93
3 changed files with 30 additions and 8 deletions

View File

@ -4038,13 +4038,10 @@ int hcl_attachio (hcl_t* hcl, hcl_ioimpl_t reader, hcl_ioimpl_t scanner, hcl_ioi
hcl_ioinarg_t new_inarg;
hcl_iooutarg_t new_outarg;
if (reader)
if (!hcl->c)
{
if (!hcl->c)
{
if (init_compiler(hcl) <= -1) return -1;
inited_compiler = 1;
}
if (init_compiler(hcl) <= -1) return -1;
inited_compiler = 1;
}
if (reader)