Re: [PATCH] apr_getopt_long interface update and interleaving support
From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2000-11-25 01:07:50 CET
> Could you write a log message to accompany the commit?
Oh, right. Same standards as subversion, I take it? It's at the end
> There's also been talk about eliminating the redundant `opts' param
I did do it; the interface I implemented is exactly what came out of
Incidentally, I have changes to subversion/client/main.c ready once
Log message follows:
--- Simplify apr_getopt_long interface and add support for interleaving. (apr_getopt_t, apr_initopt): Add "interleave" settable flag and "skip_start" and "skip_end" fields to keep track of skipped non-option arguments. Change argv to a char ** so that we can permute it. (apr_long_option_t): Renamed to apr_option_t. (apr_option_t): Rename "val" to "optch" and use for the short option name as well as the result. "name" can now be NULL, and a structure with an "optch" of 0 now terminates the list. (reverse,permute,serr,cerr): New helper functions. (apr_getopt_long): Rewrite for simplified interface and for interleaved option support.Received on Sat Oct 21 14:36:15 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.