in reply to Re^3: help with XS pointers
in thread help with XS pointers

Hi, yes the typemap is the same as before, if I try to change to "T_PTROBJ_SPECIAL" it gives this error:
Downloads/SDR::RTLSDR/SDR (another copy)/typemap' RTLSDR.xs > RTLSDR. +xsc Can't locate object method "xstype" via package "SDR__RTLSDR *" (perha +ps you forgot to load "SDR__RTLSDR *"?) at /usr/local/share/perl/5.22 +.1/ExtUtils/ParseXS.pm line 1905, <__ANONIO__> line 38. Makefile:359: recipe for target 'RTLSDR.c' failed
the typemap file now is:
GNU nano 2.5.3 File: typemap + TYPEMAP SDR::RTLSDR * T_PTROBJ_SPECIAL SDR::RTLSDR ** T_PTROBJ const char * T_PV int * T_PV char * T_PV unsigned long int T_U_LONG uint8_t T_U_SHORT uint8_t * T_U_SHORT uint16_t T_U_SHORT uint32_t * T_U_SHORT uint32_t T_U_SHORT

Replies are listed 'Best First'.
Re^5: help with XS pointers
by bliako (Abbot) on Jul 31, 2020 at 13:07 UTC

    Sorry, I did not say that you must copy it, I meant that that's how they associate a C struct with a Perl object.