From 4e28dab90a093f40ad502dd69fd6afc38761c7ad Mon Sep 17 00:00:00 2001 From: lneto Date: Sat, 19 Jul 2014 17:20:02 +0000 Subject: [PATCH] lua(4): uniformed the KPI name space using 'klua_' prefix --- sys/modules/lua/lua.c | 6 +++--- sys/modules/luapmf/luapmf.c | 6 +++--- sys/modules/luasystm/luasystm.c | 6 +++--- sys/sys/lua.h | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/modules/lua/lua.c b/sys/modules/lua/lua.c index 5e4371f4aa87..6aed4cc3153a 100644 --- a/sys/modules/lua/lua.c +++ b/sys/modules/lua/lua.c @@ -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 . @@ -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; diff --git a/sys/modules/luapmf/luapmf.c b/sys/modules/luapmf/luapmf.c index 02e7f0a76516..ff5034ed51b4 100644 --- a/sys/modules/luapmf/luapmf.c +++ b/sys/modules/luapmf/luapmf.c @@ -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 . @@ -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; diff --git a/sys/modules/luasystm/luasystm.c b/sys/modules/luasystm/luasystm.c index 8ba96a82e3a1..0caa80069aef 100644 --- a/sys/modules/luasystm/luasystm.c +++ b/sys/modules/luasystm/luasystm.c @@ -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 . @@ -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; diff --git a/sys/sys/lua.h b/sys/sys/lua.h index cb2d7b0ae64a..76a790fb0814 100644 --- a/sys/sys/lua.h +++ b/sys/sys/lua.h @@ -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 . @@ -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;