formatted a couple source lines
This commit is contained in:
parent
930b86e923
commit
15ebf5537f
@ -2364,7 +2364,7 @@ int main (int argc, char* argv[])
|
|||||||
xtn->source_path = argv[i];
|
xtn->source_path = argv[i];
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
if (moo_compile (moo, input_handler) <= -1)
|
if (moo_compile(moo, input_handler) <= -1)
|
||||||
{
|
{
|
||||||
if (moo->errnum == MOO_ESYNERR)
|
if (moo->errnum == MOO_ESYNERR)
|
||||||
{
|
{
|
||||||
@ -2419,7 +2419,7 @@ int main (int argc, char* argv[])
|
|||||||
objname.len = 8;
|
objname.len = 8;
|
||||||
mthname.ptr = str_main;
|
mthname.ptr = str_main;
|
||||||
mthname.len = 4;
|
mthname.len = 4;
|
||||||
if (moo_invoke (moo, &objname, &mthname) <= -1)
|
if (moo_invoke(moo, &objname, &mthname) <= -1)
|
||||||
{
|
{
|
||||||
moo_logbfmt (moo, MOO_LOG_STDERR, "ERROR: cannot execute code - [%d] %js\n", moo_geterrnum(moo), moo_geterrmsg(moo));
|
moo_logbfmt (moo, MOO_LOG_STDERR, "ERROR: cannot execute code - [%d] %js\n", moo_geterrnum(moo), moo_geterrmsg(moo));
|
||||||
xret = -1;
|
xret = -1;
|
||||||
|
@ -94,7 +94,7 @@ int moo_init (moo_t* moo, moo_mmgr_t* mmgr, moo_oow_t heapsz, const moo_vmprim_t
|
|||||||
|
|
||||||
MOO_MEMSET (moo, 0, MOO_SIZEOF(*moo));
|
MOO_MEMSET (moo, 0, MOO_SIZEOF(*moo));
|
||||||
moo->mmgr = mmgr;
|
moo->mmgr = mmgr;
|
||||||
moo->cmgr = moo_getutf8cmgr ();
|
moo->cmgr = moo_getutf8cmgr();
|
||||||
moo->vmprim = *vmprim;
|
moo->vmprim = *vmprim;
|
||||||
|
|
||||||
moo->option.log_mask = ~0u;
|
moo->option.log_mask = ~0u;
|
||||||
|
Loading…
Reference in New Issue
Block a user