formatted a couple source lines

This commit is contained in:
hyunghwan.chung 2018-02-05 09:56:05 +00:00
parent 930b86e923
commit 15ebf5537f
2 changed files with 3 additions and 3 deletions

View File

@ -2364,7 +2364,7 @@ int main (int argc, char* argv[])
xtn->source_path = argv[i];
compile:
if (moo_compile (moo, input_handler) <= -1)
if (moo_compile(moo, input_handler) <= -1)
{
if (moo->errnum == MOO_ESYNERR)
{
@ -2419,7 +2419,7 @@ int main (int argc, char* argv[])
objname.len = 8;
mthname.ptr = str_main;
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));
xret = -1;

View File

@ -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->mmgr = mmgr;
moo->cmgr = moo_getutf8cmgr ();
moo->cmgr = moo_getutf8cmgr();
moo->vmprim = *vmprim;
moo->option.log_mask = ~0u;