moved the heapsize parameter from hcl_open() to hcl_ignite()

This commit is contained in:
2021-02-09 17:47:22 +00:00
parent 816b900231
commit 43322c6901
8 changed files with 21 additions and 28 deletions

View File

@ -735,7 +735,7 @@ int main (int argc, char* argv[])
if (opt.ind >= argc) goto print_usage;
#endif
hcl = hcl_openstd(HCL_SIZEOF(xtn_t), heapsize, HCL_NULL);
hcl = hcl_openstd(HCL_SIZEOF(xtn_t), HCL_NULL);
if (HCL_UNLIKELY(!hcl))
{
printf ("ERROR: cannot open hcl\n");
@ -786,7 +786,7 @@ int main (int argc, char* argv[])
}
#endif
if (hcl_ignite(hcl) <= -1)
if (hcl_ignite(hcl, heapsize) <= -1)
{
hcl_logbfmt (hcl, HCL_LOG_STDERR, "cannot ignite hcl - [%d] %js\n", hcl_geterrnum(hcl), hcl_geterrmsg(hcl));
goto oops;