[Pyrex] Wrapping "typedef struct _A A;"

Edward C. Jones edcjones at erols.com
Wed Jun 4 16:28:07 CEST 2003


Greg Ewing wrote:

 > Edward C. Jones wrote:
 >
 > > How do I treat the following typedefs in Pyrex?
 > >
 > > typedef struct _IplTileInfo IplTileInfo;
 > > typedef struct _CvContourScanner* CvContourScanner;
 > > typedef struct CvPOSITObject CvPOSITObject;
 >
 >
 > ctypedef struct IplTileInfo
 > cdef struct _CvContourScanner
 > ctypedef _CvContourScanner *CvContourScanner
 > ctypedef struct CvPOSITObject

I am not sure that "ctypedef struct IplTileInfo" is correct. Is the
following better?

cdef struct _IplTileInfo
ctypedef _IplTileInfo IplTileInfo

Thanks,
Ed Jones





More information about the Pyrex mailing list