[Pyrex] Wrapping structs that reference each other

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Sep 29 05:21:34 CEST 2004


"vng1 at mac.com" <vng1 at mac.com>:

> I've got the following signature that I'd like to wrap up - it's a 
> function pointer.
> 
>      174 typedef xmlXPathObjectPtr (*xmlXPathAxisFunc) 
> (xmlXPathParserContextPtr ctxt,
>      175                  xmlXPathObjectPtr cur);
> 
> So - how does one wrap such a beastie in Pyrex

Just like that, i.e.

  ctypedef xmlXPathObjectPtr (*xmlXPathAxisFunc)(
    xmlXPathParserContextPtr ctxt,
    xmlXPathObjectPtr cur)

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