1
0
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:
fyodor
2008-08-30 19:38:51 +00:00
parent 8bc4a2ced3
commit c5a6e3844f
2 changed files with 14 additions and 0 deletions

View File

@@ -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()

View File

@@ -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.