[Pyrex] Wrapping nested structs
Edward C. Jones
edcjones at erols.com
Mon May 5 06:09:42 CEST 2003
How do I wrap the following four snippets of code?
--------------------------------
typedef struct _Small {
int i;
} Small;
typedef struct _AAA {
Small sm;
} AAA;
Small clone(Small sm);
--------------------------------
typedef struct _BBB {
struct {
int i;
} Small;
} BBB;
--------------------------------
typedef struct _CCC {
union {
int i;
float x;
} Num;
} CCC;
--------------------------------
typedef struct _Point {
union {
int x;
int col;
};
union {
int y;
int row;
};
} Point;
--------------------------------
Thanks,
Ed Jones
More information about the Pyrex
mailing list