Nmap Development mailing list archives

Re: [NSE patch] addrow() function for tab.lua


From: Sven Klemm <sven () c3d2 de>
Date: Fri, 29 Aug 2008 15:23:10 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sven Klemm wrote:
| I've attached a patch that adds an addrow() function to tab.lua,
| which can be used to add a complete row to a table instead of calling
| add for each column.

With the addrow() function you can write

~  tab.addrow( t, 'col1', 'col2', 'col3', 'col4' )

instead of writing

~  tab.add( t, 1, 'col1')
~  tab.add( t, 2, 'col2')
~  tab.add( t, 3, 'col3')
~  tab.add( t, 4, 'col4')
~  tab.nextrow( t )

which is nice if you want to add a complete row at once.

Cheers,
Sven

- --
Sven Klemm
http://cthulhu.c3d2.de/~sven/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki3+D4ACgkQevlgTHEIT4bejwCeKaJW1hQnR4+/PFhXVOZbWaXc
29EAn0rpUE2aWRA+TUg2W/UN44TCol1A
=7ito
-----END PGP SIGNATURE-----

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: