exported hcl_conv_ucs_to_bcs_with_cmgr() and similar functions

enhanced the sample server program
This commit is contained in:
2018-03-12 16:45:42 +00:00
parent d51ad1cd6a
commit 3ba32a615d
6 changed files with 598 additions and 529 deletions

View File

@ -105,7 +105,7 @@ int hcl_init (hcl_t* hcl, hcl_mmgr_t* mmgr, hcl_oow_t heapsz, const hcl_vmprim_t
HCL_MEMSET (hcl, 0, HCL_SIZEOF(*hcl));
hcl->mmgr = mmgr;
hcl->cmgr = hcl_getutf8cmgr();
hcl->cmgr = hcl_get_utf8_cmgr();
hcl->vmprim = *vmprim;
if (!hcl->vmprim.alloc_heap) hcl->vmprim.alloc_heap = alloc_heap;
if (!hcl->vmprim.free_heap) hcl->vmprim.free_heap = free_heap;