Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Automatically Import XS struct

by dave_the_m (Monsignor)
on Feb 03, 2021 at 15:23 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-01-21 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?