r12201 - gnucash/trunk/src/engine - Add 'const' qualifier to
Account pointers in the Account api.
Chris Shoemaker
chris at cvs.gnucash.org
Thu Dec 29 22:34:30 EST 2005
Author: chris
Date: 2005-12-29 22:34:22 -0500 (Thu, 29 Dec 2005)
New Revision: 12201
Trac: http://svn.gnucash.org/trac/changeset/12201
Modified:
gnucash/trunk/src/engine/Account.c
gnucash/trunk/src/engine/Account.h
gnucash/trunk/src/engine/AccountP.h
gnucash/trunk/src/engine/Group.c
gnucash/trunk/src/engine/Group.h
gnucash/trunk/src/engine/gw-engine-spec.scm
Log:
Add 'const' qualifier to Account pointers in the Account api.
Including necessary related changes to functions passed accounts
from the account functions.
Interestingly, the only g-wrap function that complained about the
new const function arguments was xaccAccountOrder(), the only one
using const Account ** types. It seems very uncommon to express
const-ness in g-wrap for any types other than gw:mchar. Actually
I couldn't find any other examples, anywhere, so I had to guess
at the syntax, but it works.
Oh, and one or two minor tweaks like my last commit snuck in, too.
More information about the gnucash-patches
mailing list