From f23486468d9d870278b985e82dd19ca3500c56b0 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 10 Jan 2017 14:34:54 +0000 Subject: [PATCH] removed unnecesary code from the ffi module --- moo/mod/ffi.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/moo/mod/ffi.c b/moo/mod/ffi.c index ca1cdaa..77003e7 100644 --- a/moo/mod/ffi.c +++ b/moo/mod/ffi.c @@ -56,7 +56,6 @@ static moo_pfrc_t pf_newinstsize (moo_t* moo, moo_ooi_t nargs) static moo_pfrc_t pf_open (moo_t* moo, moo_ooi_t nargs) { -#if defined(USE_DYNCALL) ffi_t* rcv; moo_oop_t name; @@ -91,16 +90,10 @@ static moo_pfrc_t pf_open (moo_t* moo, moo_ooi_t nargs) reterr: MOO_STACK_SETRETTOERROR (moo, nargs); return MOO_PF_SUCCESS; -#else - moo_seterrnum (moo, MOO_ENOIMPL); - MOO_STACK_SETRETTOERROR (moo, nargs); - return MOO_PF_SUCCESS; -#endif } static moo_pfrc_t pf_close (moo_t* moo, moo_ooi_t nargs) { -#if defined(USE_DYNCALL) ffi_t* rcv; if (nargs != 0) @@ -128,12 +121,6 @@ static moo_pfrc_t pf_close (moo_t* moo, moo_ooi_t nargs) reterr: MOO_STACK_SETRETTOERROR (moo, nargs); return MOO_PF_SUCCESS; - -#else - moo_seterrnum (moo, MOO_ENOIMPL); - MOO_STACK_SETRETTOERROR (moo, nargs); - return MOO_PF_SUCCESS; -#endif } static moo_pfrc_t pf_call (moo_t* moo, moo_ooi_t nargs) @@ -354,7 +341,6 @@ reterr: static moo_pfrc_t pf_getsym (moo_t* moo, moo_ooi_t nargs) { -#if defined(USE_DYNCALL) ffi_t* rcv; moo_oop_t name; void* sym; @@ -392,12 +378,6 @@ static moo_pfrc_t pf_getsym (moo_t* moo, moo_ooi_t nargs) reterr: MOO_STACK_SETRETTOERROR (moo, nargs); return MOO_PF_SUCCESS; - -#else - moo_seterrnum (moo, MOO_ENOIMPL); - MOO_STACK_SETRETTOERROR (moo, nargs); - return MOO_PF_SUCCESS; -#endif } /* ------------------------------------------------------------------------ */