r14685 - gnucash/branches/swigify/src/business/business-gnome - Change the storage of the option data for an enum-valued option.

Chris Shoemaker chris at cvs.gnucash.org
Tue Aug 15 23:41:57 EDT 2006


Author: chris
Date: 2006-08-15 23:41:56 -0400 (Tue, 15 Aug 2006)
New Revision: 14685
Trac: http://svn.gnucash.org/trac/changeset/14685

Modified:
   gnucash/branches/swigify/src/business/business-gnome/business-options-gnome.c
Log:
   Change the storage of the option data for an enum-valued option.


Modified: gnucash/branches/swigify/src/business/business-gnome/business-options-gnome.c
===================================================================
--- gnucash/branches/swigify/src/business/business-gnome/business-options-gnome.c	2006-08-16 03:39:21 UTC (rev 14684)
+++ gnucash/branches/swigify/src/business/business-gnome/business-options-gnome.c	2006-08-16 03:41:56 UTC (rev 14685)
@@ -98,8 +98,7 @@
 {
   SCM odata = gnc_option_get_option_data (option);
 
-  /* SWIG-wrapped enum values are thunks that evaluate to the enum value */
-  odata = scm_call_0(odata);
+  /* The option data is enum-typed.  It's just the enum value. */
   return (GncOwnerType) scm_num2int(odata, SCM_ARG1, __FUNCTION__);
   /*
   conv_func = scm_c_eval_string ("gw:enum-<gnc:GncOwnerType>-val->int");



More information about the gnucash-changes mailing list