Module Name: src Committed By: salazar Date: Thu Sep 8 20:57:20 UTC 2016
Modified Files: src/external/mit/lua/dist/src: lcode.c llex.c lstrlib.c Log Message: fix kernel Lua code style issues To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/mit/lua/dist/src/lcode.c cvs rdiff -u -r1.8 -r1.9 src/external/mit/lua/dist/src/llex.c cvs rdiff -u -r1.14 -r1.15 src/external/mit/lua/dist/src/lstrlib.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/mit/lua/dist/src/lcode.c diff -u src/external/mit/lua/dist/src/lcode.c:1.7 src/external/mit/lua/dist/src/lcode.c:1.8 --- src/external/mit/lua/dist/src/lcode.c:1.7 Thu Sep 8 02:57:32 2016 +++ src/external/mit/lua/dist/src/lcode.c Thu Sep 8 20:57:20 2016 @@ -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 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; Index: src/external/mit/lua/dist/src/llex.c diff -u src/external/mit/lua/dist/src/llex.c:1.8 src/external/mit/lua/dist/src/llex.c:1.9 --- src/external/mit/lua/dist/src/llex.c:1.8 Thu Sep 8 02:21:31 2016 +++ src/external/mit/lua/dist/src/llex.c Thu Sep 8 20:57:20 2016 @@ -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, co else return 0; } + #ifndef _KERNEL /* LUA_NUMBER */ /* Index: src/external/mit/lua/dist/src/lstrlib.c diff -u src/external/mit/lua/dist/src/lstrlib.c:1.14 src/external/mit/lua/dist/src/lstrlib.c:1.15 --- src/external/mit/lua/dist/src/lstrlib.c:1.14 Thu Sep 8 02:51:53 2016 +++ src/external/mit/lua/dist/src/lstrlib.c Thu Sep 8 20:57:20 2016 @@ -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, lu 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);