Front page | perl.perl5.porters |
Postings from December 2012
char* typemap
Thread Next
From:
Alex Varyanick
Date:
December 28, 2012 10:57
Subject:
char* typemap
Message ID:
CAKsv22TvHHLnq4KMQzyt7tEBQqBTBfiHW4EO8u0aNwhHqnryig@mail.gmail.com
Hello p5p,
I was writing some XS, and I should pass NULL value for my "char *"
variable.
I found in the internet [1] this way.
Ive made typemap like this:
const char * T_PVSTR
INPUT
T_PVSTR
$var = SvOK($arg) ? ($type)SvPV_nolen($arg) : NULL
So my question is:
Any reason why it doesn't present in default typemap?
Thanks.
[1] http://www.perlmonks.org/?node_id=554277
--
Varyanick I. Alex
skype: cono..
q@cono.org.ua
Thread Next
-
char* typemap
by Alex Varyanick