Patch: More options for regtool
Tony Sideris
tonys1110@home.com
Tue Jan 9 22:25:00 GMT 2001
Attached is a simple patch that adds three new options to the regtool
utility (specifically the 'list' subcommand). This adds -p which is like
'ls -p', a \ is appended to KEY names, -k which lists ONLY keys, and -l
which lists only values. This helps the utility and any scripts that may use
it easily seperate keys from values.
I also added a call to LocalFree in the Fail function to free the memory
allocated by FormatMessage, and i updated the utils.sgml file (i presume
documentation is generated from this?).
-Tony
PS: I apoligize if i missed something. I read the FAQs on contributing, hope
i got it all...
Tue Jan 09 10:26:23 2001 Tony Sideris <tonys1110@home.com>
* regtool.cc (global): Add LIST_KEYS, LIST_VALS, and LIST_ALL
constants.
* regtool.cc (global): Add int listwhat, and int postfix.
* regtool.cc (global): Modify usage_msg to document -p, -k, and -l.
* regtool.cc (Fail): Add call to LocalFree to free memory
allocated by FormatMessage (unrelated to new options).
* regtool.cc (cmd_list): Add code to implement -p, -k, and -l
options, this involved checking 'listwhat' and 'postfix' and
acting accordingly.
* utils.sgml: Updated usage message to reflect the new options.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regtool.cc-patch
Type: text/x-diff
Size: 4768 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010109/97224d6c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.sgml-patch
Type: text/x-diff
Size: 1906 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010109/97224d6c/attachment-0001.bin>
More information about the Cygwin-patches
mailing list