From f46908f0bdc2e53498c83e7084f167fe3653475a Mon Sep 17 00:00:00 2001 From: batrick Date: Tue, 10 Aug 2010 16:51:10 +0000 Subject: [PATCH] Require each Lua library explicitly (debug in particular). Requiring the "debug" library is necessary for Lua 5.2. --- nse_main.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nse_main.lua b/nse_main.lua index 0ae1adcce..57d04f094 100644 --- a/nse_main.lua +++ b/nse_main.lua @@ -44,7 +44,6 @@ local WAITING_TO_RUNNING = "NSE_WAITING_TO_RUNNING"; local DESTRUCTOR = "NSE_DESTRUCTOR"; local SELECTED_BY_NAME = "NSE_SELECTED_BY_NAME"; -local _R = debug.getregistry(); -- The registry local _G = _G; local assert = assert; @@ -65,17 +64,23 @@ local tostring = tostring; local type = type; local unpack = unpack; +local coroutine = require "coroutine"; local create = coroutine.create; local resume = coroutine.resume; local status = coroutine.status; local yield = coroutine.yield; +local debug = require "debug"; local traceback = debug.traceback; +local _R = debug.getregistry(); +local io = require "io"; local open = io.open; +local math = require "math"; local max = math.max; +local string = require "string"; local byte = string.byte; local find = string.find; local format = string.format; @@ -84,6 +89,7 @@ local lower = string.lower; local match = string.match; local sub = string.sub; +local table = require "table"; local concat = table.concat; local insert = table.insert; local remove = table.remove;