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.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21727 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2011-12-12 22:42:14 +00:00
parent a196a9953b
commit 4585ef0bc9

View File

@ -128,7 +128,13 @@ SplitList * qof_query_run_subquery (QofQuery *q, const QofQuery *q);
%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 @@ gchar * gnc_build_book_path (const gchar *filename);
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);