r14953 - gnucash/branches/swig-redo/src/business/business-core - Use some typedefs to get more specific C typing that coresponds with the

Chris Shoemaker chris at cvs.gnucash.org
Mon Oct 9 19:49:05 EDT 2006


Author: chris
Date: 2006-10-09 19:49:04 -0400 (Mon, 09 Oct 2006)
New Revision: 14953
Trac: http://svn.gnucash.org/trac/changeset/14953

Modified:
   gnucash/branches/swig-redo/src/business/business-core/gncEntry.c
   gnucash/branches/swig-redo/src/business/business-core/gncEntry.h
   gnucash/branches/swig-redo/src/business/business-core/gncInvoice.c
   gnucash/branches/swig-redo/src/business/business-core/gncInvoice.h
Log:
Use some typedefs to get more specific C typing that coresponds with the
level of detail that we want to type in guile.



Modified: gnucash/branches/swig-redo/src/business/business-core/gncEntry.c
===================================================================
--- gnucash/branches/swig-redo/src/business/business-core/gncEntry.c	2006-10-09 23:48:32 UTC (rev 14952)
+++ gnucash/branches/swig-redo/src/business/business-core/gncEntry.c	2006-10-09 23:49:04 UTC (rev 14953)
@@ -1141,7 +1141,7 @@
   return (is_inv ? entry->i_tax_value_rounded : entry->b_tax_value_rounded);
 }
 
-GList * gncEntryReturnTaxValues (GncEntry *entry, gboolean is_inv)
+AccountValueList * gncEntryReturnTaxValues (GncEntry *entry, gboolean is_inv)
 {
   if (!entry) return NULL;
   gncEntryRecomputeValues (entry);

Modified: gnucash/branches/swig-redo/src/business/business-core/gncEntry.h
===================================================================
--- gnucash/branches/swig-redo/src/business/business-core/gncEntry.h	2006-10-09 23:48:32 UTC (rev 14952)
+++ gnucash/branches/swig-redo/src/business/business-core/gncEntry.h	2006-10-09 23:49:04 UTC (rev 14953)
@@ -169,7 +169,8 @@
 gnc_numeric gncEntryReturnValue (GncEntry *entry, gboolean is_inv);
 gnc_numeric gncEntryReturnDiscountValue (GncEntry *entry, gboolean is_inv);
 gnc_numeric gncEntryReturnTaxValue (GncEntry *entry, gboolean is_inv);
-GList * gncEntryReturnTaxValues (GncEntry *entry, gboolean is_inv);
+typedef GList AccountValueList;
+AccountValueList * gncEntryReturnTaxValues (GncEntry *entry, gboolean is_inv);
 
 /** Compute the Entry value, tax-value, and discount_value, based on
  * the quantity, price, discount, tax-table, and types.  The value is

Modified: gnucash/branches/swig-redo/src/business/business-core/gncInvoice.c
===================================================================
--- gnucash/branches/swig-redo/src/business/business-core/gncInvoice.c	2006-10-09 23:48:32 UTC (rev 14952)
+++ gnucash/branches/swig-redo/src/business/business-core/gncInvoice.c	2006-10-09 23:49:04 UTC (rev 14953)
@@ -644,7 +644,7 @@
   return invoice->to_charge_amount;
 }
 
-GList * gncInvoiceGetEntries (GncInvoice *invoice)
+EntryList * gncInvoiceGetEntries (GncInvoice *invoice)
 {
   if (!invoice) return NULL;
   return invoice->entries;

Modified: gnucash/branches/swig-redo/src/business/business-core/gncInvoice.h
===================================================================
--- gnucash/branches/swig-redo/src/business/business-core/gncInvoice.h	2006-10-09 23:48:32 UTC (rev 14952)
+++ gnucash/branches/swig-redo/src/business/business-core/gncInvoice.h	2006-10-09 23:49:04 UTC (rev 14953)
@@ -109,7 +109,8 @@
 gnc_numeric gncInvoiceGetTotalSubtotal (GncInvoice *invoice);
 gnc_numeric gncInvoiceGetTotalTax (GncInvoice *invoice);
 
-GList * gncInvoiceGetEntries (GncInvoice *invoice);
+typedef GList EntryList;
+EntryList * gncInvoiceGetEntries (GncInvoice *invoice);
 
 /** Post this invoice to an account.  Returns the new Transaction
  * that is tied to this invoice.   The transaction is set with



More information about the gnucash-changes mailing list