summaryrefslogtreecommitdiff
path: root/external/mit/lua
diff options
context:
space:
mode:
authorsalazar <salazar@NetBSD.org>2016-09-08 20:57:20 +0000
committersalazar <salazar@NetBSD.org>2016-09-08 20:57:20 +0000
commit759f7942cbcf04a34e2d27a2b689c36a2b78bcff (patch)
tree8e8ac3b2a3a09373b3be4c37e40fe34d9423b87e /external/mit/lua
parentee1f2766a75afb5f8c2a6c13149ff80a822ee624 (diff)
fix kernel Lua code style issues
Diffstat (limited to 'external/mit/lua')
-rw-r--r--external/mit/lua/dist/src/lcode.c4
-rw-r--r--external/mit/lua/dist/src/llex.c3
-rw-r--r--external/mit/lua/dist/src/lstrlib.c6
3 files changed, 7 insertions, 6 deletions
diff --git a/external/mit/lua/dist/src/lcode.c b/external/mit/lua/dist/src/lcode.c
index 92c4fc1b6dc..55b52a6233a 100644
--- a/external/mit/lua/dist/src/lcode.c
+++ b/external/mit/lua/dist/src/lcode.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lcode.c,v 1.7 2016/09/08 02:57:32 salazar Exp $ */
+/* $NetBSD: lcode.c,v 1.8 2016/09/08 20:57:20 salazar Exp $ */
/*
** Id: lcode.c,v 2.109 2016/05/13 19:09:21 roberto Exp
@@ -775,7 +775,7 @@ int luaK_exp2RK (FuncState *fs, expdesc *e) {
case VKINT: e->u.info = luaK_intK(fs, e->u.ival); goto vk;
#ifndef _KERNEL
case VKFLT: e->u.info = luaK_numberK(fs, e->u.nval); goto vk;
-#endif
+#endif /* _KERNEL */
case VK:
vk:
e->k = VK;
diff --git a/external/mit/lua/dist/src/llex.c b/external/mit/lua/dist/src/llex.c
index 4fcd59bfc70..b901759f1c9 100644
--- a/external/mit/lua/dist/src/llex.c
+++ b/external/mit/lua/dist/src/llex.c
@@ -1,4 +1,4 @@
-/* $NetBSD: llex.c,v 1.8 2016/09/08 02:21:31 salazar Exp $ */
+/* $NetBSD: llex.c,v 1.9 2016/09/08 20:57:20 salazar Exp $ */
/*
** Id: llex.c,v 2.96 2016/05/02 14:02:12 roberto Exp
@@ -213,6 +213,7 @@ static int check_next2 (LexState *ls, const char *set) {
else return 0;
}
+
#ifndef _KERNEL
/* LUA_NUMBER */
/*
diff --git a/external/mit/lua/dist/src/lstrlib.c b/external/mit/lua/dist/src/lstrlib.c
index 5bcc6a674f5..93efef681d2 100644
--- a/external/mit/lua/dist/src/lstrlib.c
+++ b/external/mit/lua/dist/src/lstrlib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lstrlib.c,v 1.14 2016/09/08 02:51:53 salazar Exp $ */
+/* $NetBSD: lstrlib.c,v 1.15 2016/09/08 20:57:20 salazar Exp $ */
/*
** Id: lstrlib.c,v 1.251 2016/05/20 14:13:21 roberto Exp
@@ -942,7 +942,7 @@ static void checkdp (char *buff, int nb) {
if (ppoint) *ppoint = '.'; /* change it to a dot */
}
}
-#endif
+#endif /* _KERNEL */
static void addliteral (lua_State *L, luaL_Buffer *b, int arg) {
@@ -961,7 +961,7 @@ static void addliteral (lua_State *L, luaL_Buffer *b, int arg) {
lua_Number n = lua_tonumber(L, arg); /* write as hexa ('%a') */
nb = lua_number2strx(L, buff, MAX_ITEM, "%" LUA_NUMBER_FRMLEN "a", n);
checkdp(buff, nb); /* ensure it uses a dot */
-#endif
+#endif /* _KERNEL */
}
else { /* integers */
lua_Integer n = lua_tointeger(L, arg);