Re: about `smob' generated by swig

2007-03-28 Thread Marco Maggi
"William Xu" wrote: > Yes, it's more like a smob type pointer. Consider this, > >void bar(unsigned char *s) >{ > printf("s = %s\n", s); >} > > One problem is that how i create and pass a `unsigned > char*' parameter to `bar'. If SWIG requires me to write > smob creation myself,

Re: about `smob' generated by swig

2007-03-28 Thread William Xu
"Marco Maggi" <[EMAIL PROTECTED]> writes: > "William Xu" wrote: >> Swig could generate pointer types in C to smob. But users >> still have to define smob related operations(like mark, >> free, etc) by hand? > > Mh, no. I have never used SWIG but if I read [1] and [2] > and by inspectin