Re: Swig type mapping for GUID's

2009-02-19 Thread Derek Atkins
Charles Day writes: > Either that or gnc_guid2scm(guidnull()) ?? > I'm not sure why it is the way it is, nor am I sure what it SHOULD be. > SCM_BOOL_F probably is correct. > > qof_instance_get_guid() can return a normal GUID, guid_null(), or NULL (upon > failure). So it seems there ou

Re: Swig type mapping for GUID's

2009-02-18 Thread Charles Day
On Wed, Feb 18, 2009 at 7:03 AM, Derek Atkins wrote: > Charles Day writes: > > > I have a question about the current type mapping that swig does for GUID > > pointers. Currently, if a C function returns a GUID* that is a null > pointer > > (== NULL), swig converts it to SCM_UNDEFINED and hands t

Re: Swig type mapping for GUID's

2009-02-18 Thread Derek Atkins
Charles Day writes: > I have a question about the current type mapping that swig does for GUID > pointers. Currently, if a C function returns a GUID* that is a null pointer > (== NULL), swig converts it to SCM_UNDEFINED and hands that to guile. From > src/base-typemaps.i: > %typemap(out) GUID * "

Swig type mapping for GUID's

2009-02-17 Thread Charles Day
I have a question about the current type mapping that swig does for GUID pointers. Currently, if a C function returns a GUID* that is a null pointer (== NULL), swig converts it to SCM_UNDEFINED and hands that to guile. From src/base-typemaps.i: %typemap(out) GUID * " $result = ($1) ? gnc_guid2scm(*