26 #include "gncBusGuile.h"
27 #include "engine-helpers.h"
28 #include "engine-helpers-guile.h"
29 #include "swig-runtime.h"
30 #include "guile-mappings.h"
31 #define FUNC_NAME G_STRFUNC
33 static swig_type_info *
36 static swig_type_info * account_type = NULL;
39 account_type = SWIG_TypeQuery(
"_p_Account");
49 swig_type_info * account_type = get_acct_type();
53 val = SCM_CAR (valuearg);
54 if (!SWIG_IsPointerOfType (val, account_type))
57 acc = SWIG_MustGetPtr(val, account_type, 1, 0);
60 val = SCM_CDR (valuearg);
61 value = gnc_scm_to_numeric (val);
72 swig_type_info * account_type = get_acct_type();
76 if (!av)
return SCM_BOOL_F;
82 return scm_cons (SWIG_NewPointerObj(av->account, account_type, 0),
83 gnc_numeric_to_scm (val));
int gnc_commodity_get_fraction(const gnc_commodity *cm)
gnc_numeric gnc_numeric_convert(gnc_numeric n, gint64 denom, gint how)
gnc_commodity * xaccAccountGetCommodity(const Account *acc)