Module Name: src Committed By: lneto Date: Sat Jul 19 17:21:24 UTC 2014
Modified Files: src/external/mit/lua/dist/src: ldblib.c src/sys/modules/lua: Makefile Log Message: lua(4): added debug library To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r1.2 src/external/mit/lua/dist/src/ldblib.c cvs rdiff -u -r1.6 -r1.7 src/sys/modules/lua/Makefile 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/ldblib.c diff -u src/external/mit/lua/dist/src/ldblib.c:1.1.1.2 src/external/mit/lua/dist/src/ldblib.c:1.2 --- src/external/mit/lua/dist/src/ldblib.c:1.1.1.2 Thu Mar 15 00:08:10 2012 +++ src/external/mit/lua/dist/src/ldblib.c Sat Jul 19 17:21:24 2014 @@ -1,7 +1,7 @@ -/* $NetBSD: ldblib.c,v 1.1.1.2 2012/03/15 00:08:10 alnsn Exp $ */ +/* $NetBSD: ldblib.c,v 1.2 2014/07/19 17:21:24 lneto Exp $ */ /* -** $Id: ldblib.c,v 1.1.1.2 2012/03/15 00:08:10 alnsn Exp $ +** $Id: ldblib.c,v 1.2 2014/07/19 17:21:24 lneto Exp $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -301,6 +301,7 @@ static int db_gethook (lua_State *L) { } +#ifndef _KERNEL static int db_debug (lua_State *L) { for (;;) { char buffer[250]; @@ -316,6 +317,7 @@ static int db_debug (lua_State *L) { lua_settop(L, 0); /* remove eventual returns */ } } +#endif #define LEVELS1 12 /* size of the first part of the stack */ @@ -375,7 +377,9 @@ static int db_errorfb (lua_State *L) { static const luaL_Reg dblib[] = { +#ifndef _KERNEL {"debug", db_debug}, +#endif {"getfenv", db_getfenv}, {"gethook", db_gethook}, {"getinfo", db_getinfo}, Index: src/sys/modules/lua/Makefile diff -u src/sys/modules/lua/Makefile:1.6 src/sys/modules/lua/Makefile:1.7 --- src/sys/modules/lua/Makefile:1.6 Fri Dec 27 22:09:43 2013 +++ src/sys/modules/lua/Makefile Sat Jul 19 17:21:24 2014 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2013/12/27 22:09:43 christos Exp $ +# $NetBSD: Makefile,v 1.7 2014/07/19 17:21:24 lneto Exp $ .include "../Makefile.inc" @@ -36,6 +36,7 @@ SRCS+= lauxlib.c # Lua stdlibs source code SRCS+= lbaselib.c \ + ldblib.c \ lstrlib.c \ ltablib.c \ linit.c