r17939 - gnucash/trunk/src - Bug #570887: Change the swig type mapping for GUID* so that Scheme can tell the difference between a GUID* that is NULL, and a GUID* pointing to storage containing the "null" GUID. Previously the former case returned SCM_UNDEFINED to Scheme, which would unbind Scheme variables and make crashes. Now SCM_BOOL_F is used instead, and Scheme code can check for a NULL by comparing to #f.
Charles Day
cedayiv at cvs.gnucash.org
Thu Feb 19 23:37:28 EST 2009
Author: cedayiv
Date: 2009-02-19 23:37:28 -0500 (Thu, 19 Feb 2009)
New Revision: 17939
Trac: http://svn.gnucash.org/trac/changeset/17939
Modified:
gnucash/trunk/src/base-typemaps.i
gnucash/trunk/src/engine/engine-helpers.c
Log:
Bug #570887: Change the swig type mapping for GUID* so that Scheme can tell the difference between a GUID* that is NULL, and a GUID* pointing to storage containing the "null" GUID. Previously the former case returned SCM_UNDEFINED to Scheme, which would unbind Scheme variables and make crashes. Now SCM_BOOL_F is used instead, and Scheme code can check for a NULL by comparing to #f.
More information about the gnucash-patches
mailing list