[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] apr_getopt_long interface update and interleaving support

From: Branko Èibej <brane_at_xbc.nu>
Date: 2000-11-25 01:29:05 CET

Greg Stein wrote:

> On Fri, Nov 24, 2000 at 06:46:25PM -0500, Greg Hudson wrote:
>
>> ...
>> - char *const *argv;
>> + char **argv;
>
>
> Um. I don't think we can do this with argv. I'm surprised that it isn't
> "const char * const * argv".
>
> Certainly, if we make a copy of the array (of pointers), then we could have
> "const char **argv" and that would allow us to permute.

If this pointer is supposed to be passed from main (which I guess it
is), then you can't do that. Main's second argument must be "char
*argv[]", and you can't convert that implicitly to "const char *const
*argv" ; that would change the pointer's type.

So the change is fine.

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
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.