From c3c7f8a0c3a9fdc2ffb7cc5d84b5c15a593c942d Mon Sep 17 00:00:00 2001 From: Luis Ontanon Date: Sun, 19 Feb 2006 21:51:34 +0000 Subject: - Use lua 5.1 - Compress *_register() functions svn path=/trunk/; revision=17354 --- plugins/lua/packet-lua.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'plugins/lua/packet-lua.c') diff --git a/plugins/lua/packet-lua.c b/plugins/lua/packet-lua.c index 2839a55832..051182d999 100644 --- a/plugins/lua/packet-lua.c +++ b/plugins/lua/packet-lua.c @@ -307,15 +307,7 @@ void register_lua(void) { G_LOG_LEVEL_DEBUG, ops ? ops->logger : basic_logger, NULL); - /* initialize the lua machine */ - - L = lua_open(); - - /* load lua's standard library */ - luaopen_base(L); - luaopen_table(L); - luaopen_io(L); - luaopen_string(L); + INIT_LUA(L); /* load ethereal's API */ ProtoField_register(L); -- cgit v1.2.3