Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src lua(4): added debug library
details: https://anonhg.NetBSD.org/src/rev/ae2a9f75540c
branches: trunk
changeset: 330731:ae2a9f75540c
user: lneto <lneto%NetBSD.org@localhost>
date: Sat Jul 19 17:21:24 2014 +0000
description:
lua(4): added debug library
diffstat:
external/mit/lua/dist/src/ldblib.c | 8 ++++++--
sys/modules/lua/Makefile | 3 ++-
2 files changed, 8 insertions(+), 3 deletions(-)
diffs (56 lines):
diff -r b666126ff770 -r ae2a9f75540c external/mit/lua/dist/src/ldblib.c
--- a/external/mit/lua/dist/src/ldblib.c Sat Jul 19 17:20:02 2014 +0000
+++ b/external/mit/lua/dist/src/ldblib.c Sat Jul 19 17:21:24 2014 +0000
@@ -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 @@
}
+#ifndef _KERNEL
static int db_debug (lua_State *L) {
for (;;) {
char buffer[250];
@@ -316,6 +317,7 @@
lua_settop(L, 0); /* remove eventual returns */
}
}
+#endif
#define LEVELS1 12 /* size of the first part of the stack */
@@ -375,7 +377,9 @@
static const luaL_Reg dblib[] = {
+#ifndef _KERNEL
{"debug", db_debug},
+#endif
{"getfenv", db_getfenv},
{"gethook", db_gethook},
{"getinfo", db_getinfo},
diff -r b666126ff770 -r ae2a9f75540c sys/modules/lua/Makefile
--- a/sys/modules/lua/Makefile Sat Jul 19 17:20:02 2014 +0000
+++ b/sys/modules/lua/Makefile Sat Jul 19 17:21:24 2014 +0000
@@ -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 @@
# Lua stdlibs source code
SRCS+= lbaselib.c \
+ ldblib.c \
lstrlib.c \
ltablib.c \
linit.c
Home |
Main Index |
Thread Index |
Old Index