Pyrex 0.9.9 - Structure with self-reference fails

Peter <[email protected]> Wed, 01 Sep 2010 09:23:41 +0100
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
I'm trying to compile python-pxlib (http://github.com/gleber/python-pxlib).

The compile fails at lines 90 and 91 in pxpy.pyx saying pxdoc_t is =

undefined. In fact these lines include pointers to the containing structure:

  86   ctypedef struct pxdoc_t:
  87       char *px_name
  88       pxhead_t *px_head
  89       char *targetencoding
  90       void *(*malloc)(pxdoc_t *p, unsigned int size, char *caller)
  91       void  (*free)(pxdoc_t *p, void *mem)

This used to compile OK in all Pyrex versions up to and including 0.9.8.2

Pete
-- =

Peter Hardman
Breeder of Shetland sheep and cattle