removed cb-impl.c and cb-impl.h

This commit is contained in:
2021-02-08 15:42:24 +00:00
parent 4b3e318428
commit 1aeee25ac6
9 changed files with 17 additions and 2286 deletions

View File

@ -877,7 +877,6 @@ hcl_json_t* hcl_json_open (hcl_mmgr_t* mmgr, hcl_oow_t xtnsize, hcl_json_prim_t*
{
hcl_json_t* json;
hcl_t* hcl;
hcl_vmprim_t vmprim;
json_hcl_xtn_t* xtn;
json = (hcl_json_t*)HCL_MMGR_ALLOC(mmgr, HCL_SIZEOF(*json) + xtnsize);
@ -887,18 +886,15 @@ hcl_json_t* hcl_json_open (hcl_mmgr_t* mmgr, hcl_oow_t xtnsize, hcl_json_prim_t*
return HCL_NULL;
}
HCL_MEMSET (&vmprim, 0, HCL_SIZEOF(vmprim));
vmprim.log_write = log_write_for_dummy;
vmprim.syserrstrb = hcl_vmprim_syserrstrb;
vmprim.assertfail = hcl_vmprim_assertfail;
hcl = hcl_open(mmgr, HCL_SIZEOF(*xtn), 2048, &vmprim, errnum);
hcl = hcl_openstdwithmmgr(mmgr, HCL_SIZEOF(*xtn), 2048, errnum);
if (!hcl)
{
HCL_MMGR_FREE (mmgr, json);
return HCL_NULL;
}
hcl->vmprim.log_write = log_write_for_dummy;
xtn = (json_hcl_xtn_t*)hcl_getxtn(hcl);
xtn->json = json;