[Gnucash-changes] r13140 - gnucash/trunk/src/bin - Recompute argc after argv may have changed.

Andrew Sackville-West andrew at farwestbilliards.com
Tue Feb 7 16:14:22 EST 2006


On Tue, 07 Feb 2006 15:03:34 -0500
David Hampton <hampton-gnucash at rainbolthampton.net> wrote:

> On Tue, 2006-02-07 at 14:52 -0500, Chris Shoemaker wrote:
> > Author: chris
> > Date: 2006-02-07 14:52:29 -0500 (Tue, 07 Feb 2006)
> > New Revision: 13140
> > Trac: http://svn.gnucash.org/trac/changeset/13140
> > 
> > Modified:
> >    gnucash/trunk/src/bin/gnucash-bin.c
> > Log:
> >    Recompute argc after argv may have changed.
> 
> g_option_context already updates argc. Any reason you didn't just pass a
> pointer to argc into gnucash_command_line instead of recomputing the
> value a second time?

help me understand this, if you would: 

popt doesn't change argc or argv, but g_option_context does and the change wasn't coming back to main() right? So Chris just down and dirty reset argc so that it was in sync with argv. am I unserstanding this correctly?

A

> 
> David
>  
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20060207/f26a282d/attachment.bin


More information about the gnucash-devel mailing list