r14663 - gnucash/branches/swigify/src/business - The arguments that point to structs defined in the same module as the
Chris Shoemaker
chris at cvs.gnucash.org
Sun Aug 13 15:08:13 EDT 2006
Author: chris
Date: 2006-08-13 15:08:11 -0400 (Sun, 13 Aug 2006)
New Revision: 14663
Trac: http://svn.gnucash.org/trac/changeset/14663
Modified:
gnucash/branches/swigify/src/business/business-gnome/Makefile.am
gnucash/branches/swigify/src/business/business-gnome/business-gnome.i
gnucash/branches/swigify/src/business/business-gnome/business-options-gnome.c
gnucash/branches/swigify/src/business/business-gnome/dialog-invoice.c
gnucash/branches/swigify/src/business/business-utils/business-options.c
Log:
The arguments that point to structs defined in the same module as the
function being wrapped are typed as taking a pointer to the "real" struct,
not the "public" typedef'd name of the struct. If functions in other
modules use the same pointer arguments, and SWIG isn't told about the
typedef to the struct, then these wrappers will be typed with an
incompatible generic pointer type with the public type name.
This commit resolves this by 1) using SWIG's %import directive to see the
typedef to the struct name, 2) associated -Imodule lines in Makefile.am,
3) using the mangled form of the real struct name anywhere we need a
runtime type query. Got it?
More information about the gnucash-patches
mailing list