mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 08:31:32 +00:00
o Added new addrow() function to NSE tab library. It allows
developers to add a whole row at once rather than doing a separate add() call for each column in a row. [Sven Klemm]
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Nmap Changelog ($Id$); -*-text-*-
|
# Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o Added new addrow() function to NSE tab library. It allows
|
||||||
|
developers to add a whole row at once rather than doing a separate
|
||||||
|
add() call for each column in a row. [Sven Klemm]
|
||||||
|
|
||||||
o The NSE http library now supports chunked encoding. [Sven Klemm]
|
o The NSE http library now supports chunked encoding. [Sven Klemm]
|
||||||
|
|
||||||
o Fix a number of NSE scripts which used print_debug()
|
o Fix a number of NSE scripts which used print_debug()
|
||||||
|
|||||||
@@ -41,6 +41,16 @@ function add(t, c, v)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Add a complete row to the table and move on to the next row.
|
||||||
|
-- Calls add() for each argument starting with the second argument
|
||||||
|
-- and after that calls nextrow().
|
||||||
|
function addrow(t,...)
|
||||||
|
for i=1, arg['n'] do
|
||||||
|
add( t, i, tostring(arg[i]) )
|
||||||
|
end
|
||||||
|
nextrow( t )
|
||||||
|
end
|
||||||
|
|
||||||
--- Move on to the next row in the table. If this is not called
|
--- Move on to the next row in the table. If this is not called
|
||||||
-- then previous column values will be over-written by subsequent
|
-- then previous column values will be over-written by subsequent
|
||||||
-- values.
|
-- values.
|
||||||
|
|||||||
Reference in New Issue
Block a user