Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Recursing in XS?

by salva (Abbot)
on Apr 19, 2013 at 07:41 UTC ( #1029469=note: print w/ replies, xml ) Need Help??


in reply to Recursing in XS?

break the XS code in two layers: in one side a set of C functions implementing the parser logic and on the other side the XS wrapping code (you can put all the code in the XS file, if you wish). That way, from you C code, you can call the C functions directly, without going through Perl.

If you have several XS modules and want to call from one into other, you may like to use Module::CAPIMaker, that provides an efficient and portable way to expose a C API from a module.


Comment on Re: Recursing in XS?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-12-19 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls