This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: More options for regtool


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.

regtool.cc-patch

utils.sgml-patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]