On 17/03/03 14:10 -0800, Clint Olsen wrote:
> On Mar 17, Brian Ingerson wrote:
> > Inline binds to libraries just fine. As you say, it does not generate an
> > interface from a header file, but I'm just not convinced that's a good
> > idea. I've always said that good C interfaces do not make good Perl
> > interfaces. I'm open to discussion with some actual use case examples
> > though.
> 
> If the types in the interface are already in the typemap, then I think they
> are good candidates for automatic wrapping.  I like to only write/cross
> interfaces where I absolutely have to, otherwise it's just convenient using
> the void* pointer and passing it around to the various C functions
> transparently.  For the size and types of data I was using, it was much
> faster to remain in C land whereever possible.
> 
> What I found is that I ended up writing redundant wrappers around my C
> functions in Inline in order to get around this limitation.

Have you tried the AUTOWRAP option? IIRC correctly, it let's you just
put function prototypes in the C code, and then it generates the wrappers
automatically.

Cheers, Brian

Reply via email to