r17292 - gnucash/trunk/src/engine - Bug #542237: Use GLIST_HELPER_INOUTs before including engine-common.i.

Andreas Köhler andi5 at cvs.gnucash.org
Thu Jul 10 20:34:56 EDT 2008


Author: andi5
Date: 2008-07-10 20:34:56 -0400 (Thu, 10 Jul 2008)
New Revision: 17292
Trac: http://svn.gnucash.org/trac/changeset/17292

Modified:
   gnucash/trunk/src/engine/engine.i
Log:
Bug #542237: Use GLIST_HELPER_INOUTs before including engine-common.i.


Modified: gnucash/trunk/src/engine/engine.i
===================================================================
--- gnucash/trunk/src/engine/engine.i	2008-07-08 22:56:27 UTC (rev 17291)
+++ gnucash/trunk/src/engine/engine.i	2008-07-11 00:34:56 UTC (rev 17292)
@@ -23,15 +23,6 @@
 
 %import "base-typemaps.i"
 
-%include "engine-common.i"
-
-%inline %{
-static const GUID * gncPriceGetGUID(GNCPrice *x)
-{ return qof_instance_get_guid(QOF_INSTANCE(x)); }
-static const GUID * gncBudgetGetGUID(GncBudget *x)
-{ return qof_instance_get_guid(QOF_INSTANCE(x)); }
-%}
-
 GLIST_HELPER_INOUT(SplitList, SWIGTYPE_p_Split);
 GLIST_HELPER_INOUT(TransList, SWIGTYPE_p_Transaction);
 GLIST_HELPER_INOUT(LotList, SWIGTYPE_p_GNCLot);
@@ -42,6 +33,15 @@
 
 %typemap(newfree) gchar * "g_free($1);"
 
+%include "engine-common.i"
+
+%inline %{
+static const GUID * gncPriceGetGUID(GNCPrice *x)
+{ return qof_instance_get_guid(QOF_INSTANCE(x)); }
+static const GUID * gncBudgetGetGUID(GncBudget *x)
+{ return qof_instance_get_guid(QOF_INSTANCE(x)); }
+%}
+
 /* NB: The object ownership annotations should already cover all the
 functions currently used in guile, but not all the functions that are
 wrapped.  So, we should contract the interface to wrap only the used



More information about the gnucash-changes mailing list