On Apr 18, 2008, at 2:34 PM, Johannes Wienke wrote:
Am 04/18/2008 08:56 PM schrieb Robert Bradshaw:On Apr 18, 2008, at 8:09 AM, Johannes Wienke wrote: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.How exactly do you mean? I've tried every combination I can think of andnothing works,
Try doing something like
cdef extern from *:
ctypedef char* const_char_ptr "const char*"
cdef foo_c(const_char_ptr s):
print s
foo_c("yo")
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
