renamed OPENDL_PFMOD to DLOPEN_PFMOD
This commit is contained in:
parent
ad04eaa7b1
commit
cc0c6ed654
@ -808,7 +808,7 @@ static void* dl_open (moo_t* moo, const moo_ooch_t* name, int flags)
|
|||||||
if (!bufptr) return MOO_NULL;
|
if (!bufptr) return MOO_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & MOO_VMPRIM_OPENDL_PFMOD)
|
if (flags & MOO_VMPRIM_DLOPEN_PFMOD)
|
||||||
{
|
{
|
||||||
moo_oow_t len, i, xlen;
|
moo_oow_t len, i, xlen;
|
||||||
|
|
||||||
|
@ -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);
|
moo_copy_oochars ((moo_ooch_t*)md.mod.name, name, namelen);
|
||||||
if (moo->vmprim.dl_open && moo->vmprim.dl_getsym && moo->vmprim.dl_close)
|
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)
|
if (md.handle == MOO_NULL)
|
||||||
|
@ -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_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);
|
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_dlopen_t) (moo_t* moo, const moo_ooch_t* name, int flags);
|
||||||
typedef void (*moo_vmprim_dlclose_t) (moo_t* moo, void* handle);
|
typedef void (*moo_vmprim_dlclose_t) (moo_t* moo, void* handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user