mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Lua 5.2 upgrade [1] for NSE.
[1] http://seclists.org/nmap-dev/2012/q2/34
This commit is contained in:
parent
a839e69449
commit
000f6dc4d9
553 changed files with 13477 additions and 8870 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue