diff --git a/moo/lib/main.c b/moo/lib/main.c index 6cd1e84..e5852d9 100644 --- a/moo/lib/main.c +++ b/moo/lib/main.c @@ -808,7 +808,7 @@ static void* dl_open (moo_t* moo, const moo_ooch_t* name, int flags) if (!bufptr) return MOO_NULL; } - if (flags & MOO_VMPRIM_OPENDL_PFMOD) + if (flags & MOO_VMPRIM_DLOPEN_PFMOD) { moo_oow_t len, i, xlen; diff --git a/moo/lib/moo.c b/moo/lib/moo.c index 772035f..936df69 100644 --- a/moo/lib/moo.c +++ b/moo/lib/moo.c @@ -592,7 +592,7 @@ moo_mod_data_t* moo_openmod (moo_t* moo, const moo_ooch_t* name, moo_oow_t namel moo_copy_oochars ((moo_ooch_t*)md.mod.name, name, namelen); if (moo->vmprim.dl_open && moo->vmprim.dl_getsym && moo->vmprim.dl_close) { - md.handle = moo->vmprim.dl_open(moo, &buf[MOD_PREFIX_LEN], MOO_VMPRIM_OPENDL_PFMOD); + md.handle = moo->vmprim.dl_open(moo, &buf[MOD_PREFIX_LEN], MOO_VMPRIM_DLOPEN_PFMOD); } if (md.handle == MOO_NULL) diff --git a/moo/lib/moo.h b/moo/lib/moo.h index 858e487..17b5536 100644 --- a/moo/lib/moo.h +++ b/moo/lib/moo.h @@ -926,11 +926,11 @@ typedef void (*moo_log_write_t) (moo_t* moo, moo_oow_t mask, const moo_ooch_t* m typedef void (*moo_syserrstrb_t) (moo_t* moo, int syserr, moo_bch_t* buf, moo_oow_t len); typedef void (*moo_syserrstru_t) (moo_t* moo, int syserr, moo_uch_t* buf, moo_oow_t len); -enum moo_vmprim_opendl_flag_t +enum moo_vmprim_dlopen_flag_t { - MOO_VMPRIM_OPENDL_PFMOD = (1 << 0) + MOO_VMPRIM_DLOPEN_PFMOD = (1 << 0) }; -typedef enum moo_vmprim_opendl_flag_t moo_vmprim_opendl_flag_t; +typedef enum moo_vmprim_dlopen_flag_t moo_vmprim_dlopen_flag_t; typedef void* (*moo_vmprim_dlopen_t) (moo_t* moo, const moo_ooch_t* name, int flags); typedef void (*moo_vmprim_dlclose_t) (moo_t* moo, void* handle);