Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Automatically Import XS struct

by dave_the_m (Monsignor)
on Feb 03, 2021 at 15:23 UTC ( [id://11127859] : note . print w/replies, xml ) Need Help??


in reply to Automatically Import XS struct

XS is just a wrapper around C code to automate the generation of the C code by the automatic addition of boilerplate etc. In a standard XS distribution directory, typing 'make' will generate a foo.c file from the foo.xs file. Seeing how your code gets converted into C will give you a good idea of what's happening or where you're going wrong. If you don't understand how to handle the struct within C code then you've got a bigger problem.

Dave.

Reparented by Grandfather to OP

Replies are listed 'Best First'.
Re^3: Automatically Import XS struct
by stevieb (Canon) on Feb 03, 2021 at 15:58 UTC

    I was asking OP to show us how he's handling the struct because I believe they aren't doing it correctly. Personally, I'm fully aware myself of how it all hangs together, having authored several XS distributions that includes their own C code, as well as external library wrappers.

      Oops - that was meant as a reply to the OP, not to you!

      Dave.