1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +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

@@ -41,6 +41,16 @@ function add(t, c, v)
return true
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
-- then previous column values will be over-written by subsequent
-- values.