added a few string formatting functions

This commit is contained in:
2021-03-30 05:37:00 +00:00
parent 270c9a434b
commit 042fbbb880
4 changed files with 264 additions and 13 deletions

View File

@ -200,7 +200,7 @@ static int store_temporary_variable_count_for_block (hcl_t* hcl, hcl_oow_t tmpr_
newcapa = HCL_ALIGN(hcl->c->blk.depth + 1, BLK_INFO_BUFFER_ALIGN);
tmp = (hcl_blk_info_t*)hcl_reallocmem(hcl, hcl->c->blk.info, newcapa * HCL_SIZEOF(*tmp));
if (!tmp) return -1;
if (HCL_UNLIKELY(!tmp)) return -1;
hcl->c->blk.info_capa = newcapa;
hcl->c->blk.info = tmp;
@ -1755,6 +1755,7 @@ static int compile_try (hcl_t* hcl, hcl_cnode_t* src)
/* (try
* (perform this)
* (perform that)
* (throw 10)
* catch (x)
* (perform xxx)
* (perform yyy)