Discussion:
[Swig-devel] XML Template Typenames
Ahmed Usman
2016-08-29 21:27:14 UTC
Permalink
Hello,
I am trying to use the XML output generated by SWIG. The template xml element contains an attribute called 'templateparms' however the value is an address and doesn't tell us the information we want about the typenames, instead it just gives an address. Is this a bug? Or, is there another place that contains the correct information about the typenames? The debug-csymbols output displays the right information which means the typenames are being captured correctly but not being returned in the XML correctly. I've been looking through the source code for where this typename info is written, but I haven't found anything. Does anyone know where I can access the typename info? I am open to adding support, to make the XML display the correct information.

Thank You,
Ahmed Usman
Ahmed Usman
2016-08-31 14:54:13 UTC
Permalink
I found a fix for this. By adding a few lines in Modules/xml.c I was able to have the typename information output to the xml file. Can someone point me to where I can submit this change?

From: Ahmed Usman [mailto:***@solidthinking.com]
Sent: Monday, August 29, 2016 5:27 PM
To: swig-***@lists.sourceforge.net
Subject: [Swig-devel] XML Template Typenames

Hello,
I am trying to use the XML output generated by SWIG. The template xml element contains an attribute called 'templateparms' however the value is an address and doesn't tell us the information we want about the typenames, instead it just gives an address. Is this a bug? Or, is there another place that contains the correct information about the typenames? The debug-csymbols output displays the right information which means the typenames are being captured correctly but not being returned in the XML correctly. I've been looking through the source code for where this typename info is written, but I haven't found anything. Does anyone know where I can access the typename info? I am open to adding support, to make the XML display the correct information.

Thank You,
Ahmed Usman
Vadim Zeitlin
2016-08-31 18:21:21 UTC
Permalink
On Wed, 31 Aug 2016 14:54:13 +0000 Ahmed Usman <***@solidthinking.com> wrote:

AU> I found a fix for this. By adding a few lines in Modules/xml.c I was
AU> able to have the typename information output to the xml file. Can
AU> someone point me to where I can submit this change?

Please submit a pull request (PR) to Github repository at
https://github.com/swig/swig

Thanks,
VZ

Loading...