From: Andrea F. <and...@al...> - 2009-04-03 15:42:16
|
Hi all, 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 below. In fact, the definition of my_struct_nested comes *after* the definition of my_struct. Is this the expected behaviour? I'm using SWIG version 1.3.40. Full interface/wrapper code attached. Thanks in advance. Andrea |