Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mit/lua/dist/src fix kernel Lua code style issues
details: https://anonhg.NetBSD.org/src/rev/7317ae12aec1
branches: trunk
changeset: 347646:7317ae12aec1
user: salazar <salazar%NetBSD.org@localhost>
date: Thu Sep 08 20:57:20 2016 +0000
description:
fix kernel Lua code style issues
diffstat:
external/mit/lua/dist/src/lcode.c | 4 ++--
external/mit/lua/dist/src/llex.c | 3 ++-
external/mit/lua/dist/src/lstrlib.c | 6 +++---
3 files changed, 7 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r e714e5956770 -r 7317ae12aec1 external/mit/lua/dist/src/lcode.c
--- a/external/mit/lua/dist/src/lcode.c Thu Sep 08 18:54:03 2016 +0000
+++ b/external/mit/lua/dist/src/lcode.c Thu Sep 08 20:57:20 2016 +0000
@@ -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 @@
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 -r e714e5956770 -r 7317ae12aec1 external/mit/lua/dist/src/llex.c
--- a/external/mit/lua/dist/src/llex.c Thu Sep 08 18:54:03 2016 +0000
+++ b/external/mit/lua/dist/src/llex.c Thu Sep 08 20:57:20 2016 +0000
@@ -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 @@
else return 0;
}
+
#ifndef _KERNEL
/* LUA_NUMBER */
/*
diff -r e714e5956770 -r 7317ae12aec1 external/mit/lua/dist/src/lstrlib.c
--- a/external/mit/lua/dist/src/lstrlib.c Thu Sep 08 18:54:03 2016 +0000
+++ b/external/mit/lua/dist/src/lstrlib.c Thu Sep 08 20:57:20 2016 +0000
@@ -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 @@
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 @@
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);
Home |
Main Index |
Thread Index |
Old Index