blob: 800d93b275496e59d0c90cb3869bb5aaf794832c [file] [log] [blame]
%module typedef_struct
%inline %{
typedef struct {
int numpoints;
} LineObj;
typedef LineObj MultipointObj;
typedef struct {
#ifdef SWIG
%immutable;
#endif
char *filename;
int numfonts;
#ifdef SWIG
%mutable;
#endif
int* fonts;
#ifndef SWIG
void* map;
#endif
} FontSetObj;
#define MS_NOOVERRIDE -1111
%}
%inline %{
typedef struct {
int a;
int b;
} A_t, *B_t;
A_t* make_a() {
return (A_t*)malloc(sizeof(A_t));
}
B_t make_b() {
return make_a();
}
%}