[Pyrex] Function Pointer

Greg Ewing greg at cosc.canterbury.ac.nz
Fri Mar 5 03:45:34 CET 2004


Marco Bubke <marco at bubke.de>:

> C:
> typedef struct GLUtesselator;
> 
> In Pyrex I have done:
> cdef extern from "GL/glu.h":
>   cdef struct GLUtesselator_
>   ctypedef GLUtesselator_ GLUtesselator
> 
> Its right?

You could probably simplify that to just

    ctypedef struct GLUtesselator

but if you're not getting any errors, either way should be fine.

> The code is a one to one version of my C++ Project before. Its
> working without problems in C++.

In that case, I'm stumped. You may need to post the rest of
your code...

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