[Pyrex] Wrapping "typedef struct _A A;", third pass

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Jun 5 05:02:43 CEST 2003


> The declaration
>
>     cdef struct _A:
>         double big_lie
>
> below doesn't seem to be needed except to turn off an error message 
> about incomplete types.

Pyrex complains to forestall possible errors later from
the C compiler in case it doesn't have the full definition. 
In this case, the full definition is actually available to
the C compiler, but Pyrex has no way of knowing that.

I agree that the inability to have an empty struct
declaration using "pass" is a shortcoming, and it's on
my list of things to fix.

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