lua(4): uniformed the KPI name space using 'klua_' prefix
This commit is contained in:
parent
c76e451dca
commit
4e28dab90a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lua.c,v 1.10 2014/07/19 17:14:40 lneto Exp $ */
|
||||
/* $NetBSD: lua.c,v 1.11 2014/07/19 17:20:02 lneto Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 by Lourival Vieira Neto <lneto@NetBSD.org>.
|
||||
|
@ -588,7 +588,7 @@ lua_maxcount(lua_State *L, lua_Debug *d)
|
|||
}
|
||||
|
||||
int
|
||||
lua_mod_register(const char *name, lua_CFunction open)
|
||||
klua_mod_register(const char *name, lua_CFunction open)
|
||||
{
|
||||
struct lua_module *m;
|
||||
|
||||
|
@ -606,7 +606,7 @@ lua_mod_register(const char *name, lua_CFunction open)
|
|||
}
|
||||
|
||||
int
|
||||
lua_mod_unregister(const char *name)
|
||||
klua_mod_unregister(const char *name)
|
||||
{
|
||||
struct lua_module *m;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: luapmf.c,v 1.4 2014/07/19 17:14:40 lneto Exp $ */
|
||||
/* $NetBSD: luapmf.c,v 1.5 2014/07/19 17:20:02 lneto Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011, 2013 Marc Balmer <mbalmer@NetBSD.org>.
|
||||
|
@ -150,10 +150,10 @@ luapmf_modcmd(modcmd_t cmd, void *opaque)
|
|||
int error;
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
error = lua_mod_register("pmf", luaopen_pmf);
|
||||
error = klua_mod_register("pmf", luaopen_pmf);
|
||||
break;
|
||||
case MODULE_CMD_FINI:
|
||||
error = lua_mod_unregister("pmf");
|
||||
error = klua_mod_unregister("pmf");
|
||||
break;
|
||||
default:
|
||||
error = ENOTTY;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: luasystm.c,v 1.3 2014/07/19 17:14:40 lneto Exp $ */
|
||||
/* $NetBSD: luasystm.c,v 1.4 2014/07/19 17:20:02 lneto Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011, 2013 Marc Balmer <mbalmer@NetBSD.org>.
|
||||
|
@ -216,10 +216,10 @@ luasystm_modcmd(modcmd_t cmd, void *opaque)
|
|||
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
error = lua_mod_register("systm", luaopen_systm);
|
||||
error = klua_mod_register("systm", luaopen_systm);
|
||||
break;
|
||||
case MODULE_CMD_FINI:
|
||||
error = lua_mod_unregister("systm");
|
||||
error = klua_mod_unregister("systm");
|
||||
break;
|
||||
default:
|
||||
error = ENOTTY;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lua.h,v 1.5 2014/07/19 17:14:40 lneto Exp $ */
|
||||
/* $NetBSD: lua.h,v 1.6 2014/07/19 17:20:02 lneto Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 by Lourival Vieira Neto <lneto@NetBSD.org>.
|
||||
|
@ -80,8 +80,8 @@ struct lua_load {
|
|||
#define LUALOAD _IOWR('l', 4, struct lua_load)
|
||||
|
||||
#ifdef _KERNEL
|
||||
extern int lua_mod_register(const char *, lua_CFunction);
|
||||
extern int lua_mod_unregister(const char *);
|
||||
extern int klua_mod_register(const char *, lua_CFunction);
|
||||
extern int klua_mod_unregister(const char *);
|
||||
|
||||
typedef struct _klua_State {
|
||||
lua_State *L;
|
||||
|
|
Loading…
Reference in New Issue