added the mod parameter to primitive functions

This commit is contained in:
hyunghwan.chung
2018-05-07 16:52:51 +00:00
parent a78594d24f
commit b891d31e8b
7 changed files with 222 additions and 205 deletions

View File

@ -39,6 +39,7 @@
#define MOO_USE_METHOD_TRAILER
typedef struct moo_mod_t moo_mod_t;
typedef unsigned int moo_bitmask_t;
/* ========================================================================== */
@ -1153,8 +1154,9 @@ typedef enum moo_pfrc_t moo_pfrc_t;
/* primitive function implementation type */
typedef moo_pfrc_t (*moo_pfimpl_t) (
moo_t* moo,
moo_ooi_t nargs
moo_t* moo,
moo_mod_t* mod,
moo_ooi_t nargs
);
typedef struct moo_pfbase_t moo_pfbase_t;
@ -1196,8 +1198,6 @@ struct moo_pfinfo_t
* ========================================================================= */
#define MOO_MOD_NAME_LEN_MAX 120
typedef struct moo_mod_t moo_mod_t;
enum moo_mod_hint_t
{
MOO_MOD_LOAD_FOR_IMPORT = (1 << 0)