[Pyrex] Wrapping structs that reference each other

vng1 at mac.com vng1 at mac.com
Mon Sep 27 02:56:04 CEST 2004


How do I do forward declarations in Pyrex?  I've got C structures that 
I'm trying to wrap, but they reference each other.

The following code is  an example of what I'd like to do, but Pyrex 
yells at me when it gets to the "_xmlNode root" in the first struct.

           cdef struct _xmlDoc:
               _xmlNode root
           cdef struct _xmlNode:
               _xmlDoc doc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3901 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20040926/9d70317f/smime.bin


More information about the Pyrex mailing list