Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: perlxs failed to parse my typemap (typemaps are double quoted perl strings)

by llancet (Friar)
on Mar 12, 2014 at 07:17 UTC ( [id://1077981]=note: print w/replies, xml ) Need Help??


in reply to Re: perlxs failed to parse my typemap (typemaps are double quoted perl strings)
in thread perlxs failed to parse my typemap

== Why not use T_ENUM?

Because I need input and output from perl, and T_ENUM only allows to transfer from C

== Why not do the string-to-flag conversion in pure-perl?

Because I don't want my typemap code looks full of {{{}}}

Now I use an ultimate solution: put all conversion code in functions in another .c and .h file, and call these functions in XS code.

  • Comment on Re^2: perlxs failed to parse my typemap (typemaps are double quoted perl strings)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-24 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found