enhanced moo_inttostr() with 2 new flags - MOO_INTTOSTR_LOWERCASE and MOO_INTTOSTR_NONEWOBJ

redefined bigint and fpdec check macros
added the strfmt primitive to String
This commit is contained in:
hyunghwan.chung
2018-12-21 16:25:25 +00:00
parent d3227d1452
commit 71a617b95b
9 changed files with 957 additions and 129 deletions

View File

@ -282,6 +282,14 @@ void moo_fini (moo_t* moo)
moo->inttostr.t.capa = 0;
}
if (moo->sprintf.xbuf.ptr)
{
moo_freemem (moo, moo->sprintf.xbuf.ptr);
moo->sprintf.xbuf.ptr = MOO_NULL;
moo->sprintf.xbuf.capa = 0;
moo->sprintf.xbuf.len = 0;
}
if (moo->vmprim.dl_cleanup) moo->vmprim.dl_cleanup (moo);
}