On Apr 18, 2008, at 8:09 AM, Johannes Wienke wrote:
Hi,Am 04/18/2008 04:53 PM schrieb Stefan Behnel:Johannes Wienke wrote:void plug_observ_data (plugDefinition *plug, const char *ident); This is one example. My problem here is that Cython doesn't knowanything about const. So I can't implement this function appropriately.Is there any way to solve this problem?You might get away with something like ctypedef constcharptr char* "const char*"Too bad, doesn't work. In this version even cython doesn't compile. Whatworks is: ctypedef char* constcharptr "const char*" But that generates obviously wrong C code: typedef char *const char*;
Putting this in a cdef extern block should work. - Robert
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
