[Pyrex] ctypedef in a "cdef extern from" block

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Jun 9 02:20:15 CEST 2003


Matthias Baas <baas at ira.uka.de>:

> I want to wrap a C library that contains a function, let's call it 
> getProc(), which returns a pointer to another function.
> 
> The problem with the function pointer is that I can't exactly 
> describe it within Pyrex

Are you sure you can't describe it exactly in Pyrex? What
does it look like?

> So it doesn't keep the typedef'd name but replaces it with its
> definition which is not the "real" one
> 
> I'm not even sure if this has to be considered being a bug

The best way of dealing with this would be to tell the truth
about the function's type if at all possible. I'll have to
see its real definition before I can say any more.

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