[Pdns-dev] ArgvMap - fixed version

Norbert Sendetzky norbert at linuxnetworks.de
Sun Feb 8 18:07:38 CET 2004


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

Hi Bert

Like I promised yesterday, here is the version of ArgvMap that fixes 
the bug which prevented the correct output of the help string. The 
arguments_rewrite.diff applies to current cvs version.

Test code and test files are also attached for inspection.

One further notice:
In your current code in receiver.cc you do parseArgv() twice. This is 
ok in the old version of ArgvMap, but only as long as you don't want 
to use items (e.g. commands, files, etc.) in the future. This would 
lead to the situation that all items would show up twice. In the new 
version, you could use checkArgv() to avoid using parseArgv() twice. 
Just FYI.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAkAmbNsACgkQxMLs5v5/7eB3fACePOQCtJRnb3IJ4fjO9tFrUXvR
EDwAnAkRu7CoCfViIy3nIVkEGogOov7y
=2rem
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: argtest.cc
Type: text/x-c++src
Size: 1618 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20040208/e7b5adb7/argtest.bin
-------------- next part --------------
# test config file
 debug	= yes # debugging
	test-port =	25 	# test-port=80
test-host=192.168.1.1
 multiline = "test1 \\ # begin
 		 test2	 \\
                 test3" # last line
	#
empty="
empty2= "   "
empty3=
daemon=no
 	single
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arguments.hh
Type: text/x-c++hdr
Size: 2412 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20040208/e7b5adb7/arguments.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arguments.cc
Type: text/x-c++src
Size: 6046 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20040208/e7b5adb7/arguments-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arguments_rewrite.diff
Type: text/x-diff
Size: 4060 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20040208/e7b5adb7/arguments_rewrite.bin


More information about the Pdns-dev mailing list