fixed some spacing
This commit is contained in:
parent
936b9179ed
commit
712f2c2d10
@ -403,17 +403,17 @@ static MOO_INLINE moo_ooi_t open_input (moo_t* moo, moo_ioarg_t* arg)
|
|||||||
const moo_bch_t* fn, * fb;
|
const moo_bch_t* fn, * fb;
|
||||||
|
|
||||||
#if defined(MOO_OOCH_IS_UCH)
|
#if defined(MOO_OOCH_IS_UCH)
|
||||||
if (moo_convootobcstr (moo, arg->name, &ucslen, MOO_NULL, &bcslen) <= -1) goto oops;
|
if (moo_convootobcstr(moo, arg->name, &ucslen, MOO_NULL, &bcslen) <= -1) goto oops;
|
||||||
#else
|
#else
|
||||||
bcslen = moo_count_bcstr (arg->name);
|
bcslen = moo_count_bcstr(arg->name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fn = ((bb_t*)arg->includer->handle)->fn;
|
fn = ((bb_t*)arg->includer->handle)->fn;
|
||||||
|
|
||||||
fb = get_base_name (fn);
|
fb = get_base_name(fn);
|
||||||
parlen = fb - fn;
|
parlen = fb - fn;
|
||||||
|
|
||||||
bb = moo_callocmem (moo, MOO_SIZEOF(*bb) + (MOO_SIZEOF(moo_bch_t) * (parlen + bcslen + 1)));
|
bb = moo_callocmem(moo, MOO_SIZEOF(*bb) + (MOO_SIZEOF(moo_bch_t) * (parlen + bcslen + 1)));
|
||||||
if (!bb) goto oops;
|
if (!bb) goto oops;
|
||||||
|
|
||||||
bb->fn = (moo_bch_t*)(bb + 1);
|
bb->fn = (moo_bch_t*)(bb + 1);
|
||||||
@ -429,9 +429,9 @@ static MOO_INLINE moo_ooi_t open_input (moo_t* moo, moo_ioarg_t* arg)
|
|||||||
/* main stream */
|
/* main stream */
|
||||||
moo_oow_t pathlen;
|
moo_oow_t pathlen;
|
||||||
|
|
||||||
pathlen = moo_count_bcstr (xtn->source_path);
|
pathlen = moo_count_bcstr(xtn->source_path);
|
||||||
|
|
||||||
bb = moo_callocmem (moo, MOO_SIZEOF(*bb) + (MOO_SIZEOF(moo_bch_t) * (pathlen + 1)));
|
bb = moo_callocmem(moo, MOO_SIZEOF(*bb) + (MOO_SIZEOF(moo_bch_t) * (pathlen + 1)));
|
||||||
if (!bb) goto oops;
|
if (!bb) goto oops;
|
||||||
|
|
||||||
bb->fn = (moo_bch_t*)(bb + 1);
|
bb->fn = (moo_bch_t*)(bb + 1);
|
||||||
@ -439,9 +439,9 @@ static MOO_INLINE moo_ooi_t open_input (moo_t* moo, moo_ioarg_t* arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__OS2__) || defined(__DOS__)
|
#if defined(_WIN32) || defined(__OS2__) || defined(__DOS__)
|
||||||
bb->fp = fopen (bb->fn, "rb");
|
bb->fp = fopen(bb->fn, "rb");
|
||||||
#else
|
#else
|
||||||
bb->fp = fopen (bb->fn, "r");
|
bb->fp = fopen(bb->fn, "r");
|
||||||
#endif
|
#endif
|
||||||
if (!bb->fp)
|
if (!bb->fp)
|
||||||
{
|
{
|
||||||
@ -3092,7 +3092,7 @@ int main (int argc, char* argv[])
|
|||||||
vmprim.vm_muxwait = vm_muxwait;
|
vmprim.vm_muxwait = vm_muxwait;
|
||||||
vmprim.vm_sleep = vm_sleep;
|
vmprim.vm_sleep = vm_sleep;
|
||||||
|
|
||||||
moo = moo_open (&sys_mmgr, MOO_SIZEOF(xtn_t), memsize, &vmprim, MOO_NULL);
|
moo = moo_open(&sys_mmgr, MOO_SIZEOF(xtn_t), memsize, &vmprim, MOO_NULL);
|
||||||
if (!moo)
|
if (!moo)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "ERROR: cannot open moo\n");
|
fprintf (stderr, "ERROR: cannot open moo\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user