Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-18 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found