r14975 - gnucash/branches/swig-redo/src - Convert AccountType from gwrap to swig.

Chris Shoemaker chris at cvs.gnucash.org
Mon Oct 9 20:07:04 EDT 2006


Author: chris
Date: 2006-10-09 20:07:02 -0400 (Mon, 09 Oct 2006)
New Revision: 14975
Trac: http://svn.gnucash.org/trac/changeset/14975

Modified:
   gnucash/branches/swig-redo/src/app-utils/guile-util.c
   gnucash/branches/swig-redo/src/app-utils/option-util.c
   gnucash/branches/swig-redo/src/app-utils/options.scm
   gnucash/branches/swig-redo/src/app-utils/prefs.scm
   gnucash/branches/swig-redo/src/business/business-reports/owner-report.scm
   gnucash/branches/swig-redo/src/business/business-reports/payables.scm
   gnucash/branches/swig-redo/src/business/business-reports/receivables.scm
   gnucash/branches/swig-redo/src/report/locale-specific/us/taxtxf-de_DE.scm
   gnucash/branches/swig-redo/src/report/locale-specific/us/taxtxf.scm
   gnucash/branches/swig-redo/src/report/report-system/report-utilities.scm
   gnucash/branches/swig-redo/src/report/standard-reports/account-piecharts.scm
   gnucash/branches/swig-redo/src/report/standard-reports/account-summary.scm
   gnucash/branches/swig-redo/src/report/standard-reports/advanced-portfolio.scm
   gnucash/branches/swig-redo/src/report/standard-reports/average-balance.scm
   gnucash/branches/swig-redo/src/report/standard-reports/balance-sheet.scm
   gnucash/branches/swig-redo/src/report/standard-reports/budget.scm
   gnucash/branches/swig-redo/src/report/standard-reports/cash-flow.scm
   gnucash/branches/swig-redo/src/report/standard-reports/category-barchart.scm
   gnucash/branches/swig-redo/src/report/standard-reports/daily-reports.scm
   gnucash/branches/swig-redo/src/report/standard-reports/equity-statement.scm
   gnucash/branches/swig-redo/src/report/standard-reports/income-statement.scm
   gnucash/branches/swig-redo/src/report/standard-reports/net-barchart.scm
   gnucash/branches/swig-redo/src/report/standard-reports/standard-reports.scm
   gnucash/branches/swig-redo/src/report/standard-reports/transaction.scm
   gnucash/branches/swig-redo/src/report/standard-reports/trial-balance.scm
Log:
Convert AccountType from gwrap to swig.

This type had to be done by hand for several reasons, most obviously
because the same guile symbols that are used for account-types are
sometimes used with other meanings. This conversion was tedious and
error-prone.  This is a potentially risky source of bugs.

 - Use '() instead of #f for the empty object.
 - Convert the runtime code that uses AccountType to use the swig api.
 - Incidentally this fixes an existing bug where the AccountType
   C<->guile mapping was broken, with the effect of no longer showing
   Account-type specific debit/credit column headers in the register.






More information about the gnucash-patches mailing list