I know you can specify the language of a %typemap(). See http://www.swig.org/Doc1.1/HTML/Typemaps.html#n6 in particular the subsection "Creating a new typemap".
-derek "Jeff Green" <[EMAIL PROTECTED]> writes: > I have looked into trying to combine the existing Swig interface files and the > python-bindings interface files. As far as I can tell there isn't a way to > specify multiple language specific sections in a single interface file > (someone please correct me if I'm missing something). The best bet might be to > put the non-language specific stuff into a separate file (it would mostly > consist of common typedefs and function declarations) and have the language > specific interface files %include that file. There would also still need to be > separate typemaps for more complex types like GList since they need to be > handled in a particular way for each target language. > I think doing it this way would work well, I'm just slightly reluctant to do > it because it would involve mucking around with things unrelated to the Python > bindings. > > Jeff > > On Wed, Mar 26, 2008 at 11:38 AM, Derek Atkins <[EMAIL PROTECTED]> wrote: > > Mark Jenkins <[EMAIL PROTECTED]> writes: > > >> I'm wondering if it makes sense to try to combine them.. or if it > >> makes sense to keep them separate? I'm not sure what it would > >> look like either way. > > > > I agree that it would make sense to combine them for the reasons you > > state. SWIG provides a lot of powerful features, and I think there's a > > good chance this is achievable. > > > > Would you like to see an attempt made before committing these? > > If you don't mind I'd like to see an attempt made before committing > these. I'm really excited about this (even though I think Python > as a language is the spawn of the Devil). :) > > > Or can we commit now and include this task amongst the other > > improvements the python bindings are still going to need. > > > Mark > > -derek > > -- > 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 > [EMAIL PROTECTED] PGP key available > _______________________________________________ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > -- 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 [EMAIL PROTECTED] PGP key available _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel