Bugs item #2744631, was opened at 2009-04-08 16:19
Message generated for change (Comment added) made by wsfulton
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2744631&group_id=1645
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: xml
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andrea Fazzi (remogatto)
Assigned to: Nobody/Anonymous (nobody)
Summary: xml module doesn't respect field declaration order
Initial Comment:
It seems that the xml module doesn't respect field declaration order of nested structs.
An interface file that reproduces the problem is attached.
----------------------------------------------------------------------
>Comment By: William Fulton (wsfulton)
Date: 2009-10-07 09:46
Message:
Extra info from Andrea's email about this to swig-user:
I noticed an unexpected behaviour in the generation of the XML wrapper
code of nested structs. It seems that the declaration of the nested
struct comes *after* the declaration of the container struct.
E.g.
typedef struct {
struct {
char a;
} nested;
} my_struct;
Looking at SWIG documentation I understand that the example below should
be transformed in something like:
typedef struct {
char a;
} my_struct_nested;
typedef struct {
my_struct_nested nested;
} my_struct;
But it seems that the generated XML wrapper code doesn't reflect the
situation above. In fact, the definition of my_struct_nested comes
*after* the definition of my_struct.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2744631&group_id=1645
|