[Pyrex] Wrapping "typedef struct _A A;", second pass
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Jun 5 02:32:17 CEST 2003
"Edward C. Jones" <edcjones at erols.com>:
> # I want A to be an opaque C type at the Pyrex level.
> struct _A {
> int i;
> };
>
> typedef struct _A A;
If you want to expose instances of A to Python code,
you'll have to wrap it in an extension type.
Have you looked at the Quick Guide to Pyrex? It shows
a couple of examples of how to do this sort of thing.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list