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?? |
== 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.
In Section
Seekers of Perl Wisdom
|
|