r21727 - gnucash/trunk/src/engine - Fix "imported from both (sw_engine) and (gnucash engine)" errors from Guile

John Ralls jralls at code.gnucash.org
Mon Dec 12 17:42:14 EST 2011


Author: jralls
Date: 2011-12-12 17:42:14 -0500 (Mon, 12 Dec 2011)
New Revision: 21727
Trac: http://svn.gnucash.org/trac/changeset/21727

Modified:
   gnucash/trunk/src/engine/engine.i
Log:
Fix "imported from both (sw_engine) and (gnucash engine)" errors from Guile

The GncNumericErrorCode enums are re-defined in src/engine/gnc-numeric.scm -- the SWIG way of representing them produces type errors in the report code. This may well be a problem with the calling code, but it's easier at this point to just not import the symbols into sw_engine.

gnc_commodity_table_get_quotable_commodities is explicitly wrapped in app-utils.i, so we need to not have the default wrapper in sw_engine.

Modified: gnucash/trunk/src/engine/engine.i
===================================================================
--- gnucash/trunk/src/engine/engine.i	2011-12-12 22:42:02 UTC (rev 21726)
+++ gnucash/trunk/src/engine/engine.i	2011-12-12 22:42:14 UTC (rev 21727)
@@ -128,7 +128,13 @@
 %include <qofbook.h>
 
 KvpFrame* qof_book_get_slots(QofBook* book);
-
+%ignore GNC_DENOM_AUTO;
+%ignore GNCNumericErrorCodes;
+%ignore GNC_ERROR_OK;
+%ignore GNC_ERROR_ARG;
+%ignore GNC_ERROR_OVERFLOW;
+%ignore GNC_ERROR_DENOM_DIFF;
+%ignore GNC_ERROR_REMAINDER;
 %include <gnc-numeric.h>
 
 Timespec timespecCanonicalDayTime(Timespec t);
@@ -166,6 +172,7 @@
 void gnc_quote_source_set_fq_installed (GList *sources_list);
 %clear GList *;
 %ignore gnc_quote_source_set_fq_installed;
+%ignore gnc_commodity_table_get_quotable_commodities;
 %include <gnc-commodity.h>
 
 void gnc_hook_add_scm_dangler (const gchar *name, SCM proc);



More information about the gnucash-changes mailing list