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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user