1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Lua 5.2 upgrade [1] for NSE.

[1] http://seclists.org/nmap-dev/2012/q2/34
This commit is contained in:
batrick
2012-05-27 08:53:32 +00:00
parent a839e69449
commit 000f6dc4d9
553 changed files with 13477 additions and 8870 deletions

View File

@@ -39,6 +39,8 @@
-- DEPENDENCIES --
local stdnse = require "stdnse"
local table = require "table"
local getmetatable = getmetatable;
local setmetatable = setmetatable;
local type = type;
@@ -47,8 +49,7 @@ local ipairs = ipairs;
local pairs = pairs;
local concat = table.concat;
module(... or "strbuf");
_ENV = stdnse.module("strbuf", stdnse.seeall)
-- String buffer functions. Concatenation is not efficient in
-- lua as strings are immutable. If a large amount of '..' sequential
@@ -136,3 +137,5 @@ local mt = {
function new(...)
return setmetatable({...}, mt);
end
return _ENV;