Re: Typemap for "long long int"?
[email protected] (Marvin Humphrey)
| Newsgroups | perl.xs |
|---|---|
| Message-ID | <CAAS6=7hRe++vh1PE74yNaw7gbqajEJR=azG7O9ec=fWFuc_+aQ@mail.gmail.com> |
On Sat, Jul 21, 2012 at 6:12 PM, Bill Moseley <[email protected]> wrote: > perl -V shows this, if of any concern: > > use64bitint=define, use64bitall=define > > Could someone please show me how to correctly handle this signature? I believe that a "typemap" file in your build directory with the content below my sig should do the trick. Note that the <tab> character between "long long int" and "LONG_LONG_INT" is mandatory. More info here: http://perldoc.perl.org/perlxstypemap.html Marvin Humphrey TYPEMAP long long int LONG_LONG_INT INPUT LONG_LONG_INT $var = ($type)SvIV($arg); OUTPUT LONG_LONG_INT sv_setiv($arg, (IV)$var);