r14663 - gnucash/branches/swigify/src/business - The arguments that point to structs defined in the same module as the
warlord at MIT.EDU
Mon Aug 14 13:23:20 EDT 2006
Chris Shoemaker <chris at cvs.gnucash.org> writes:
> 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?
So basically what you're saying is that with SWIG you can't use
the public typedef name? That seems... Wrong.
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel