Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys lua(4): uniformed the KPI name space using 'klua_' prefix
details: https://anonhg.NetBSD.org/src/rev/b666126ff770
branches: trunk
changeset: 330730:b666126ff770
user: lneto <lneto%NetBSD.org@localhost>
date: Sat Jul 19 17:20:02 2014 +0000
description:
lua(4): uniformed the KPI name space using 'klua_' prefix
diffstat:
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(-)
diffs (91 lines):
diff -r 492979b4d5a1 -r b666126ff770 sys/modules/lua/lua.c
--- a/sys/modules/lua/lua.c Sat Jul 19 17:19:22 2014 +0000
+++ b/sys/modules/lua/lua.c Sat Jul 19 17:20:02 2014 +0000
@@ -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@localhost>.
@@ -588,7 +588,7 @@
}
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 @@
}
int
-lua_mod_unregister(const char *name)
+klua_mod_unregister(const char *name)
{
struct lua_module *m;
diff -r 492979b4d5a1 -r b666126ff770 sys/modules/luapmf/luapmf.c
--- a/sys/modules/luapmf/luapmf.c Sat Jul 19 17:19:22 2014 +0000
+++ b/sys/modules/luapmf/luapmf.c Sat Jul 19 17:20:02 2014 +0000
@@ -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@localhost>.
@@ -150,10 +150,10 @@
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 -r 492979b4d5a1 -r b666126ff770 sys/modules/luasystm/luasystm.c
--- a/sys/modules/luasystm/luasystm.c Sat Jul 19 17:19:22 2014 +0000
+++ b/sys/modules/luasystm/luasystm.c Sat Jul 19 17:20:02 2014 +0000
@@ -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@localhost>.
@@ -216,10 +216,10 @@
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 -r 492979b4d5a1 -r b666126ff770 sys/sys/lua.h
--- a/sys/sys/lua.h Sat Jul 19 17:19:22 2014 +0000
+++ b/sys/sys/lua.h Sat Jul 19 17:20:02 2014 +0000
@@ -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@localhost>.
@@ -80,8 +80,8 @@
#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;
Home |
Main Index |
Thread Index |
Old Index