NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: XS/guts Expert help needed (Score:1)
Aren't you calloc()ing a char buffer without free()ing it.
John.
--
Re: (Score:2)
Re: (Score:2)
Re: XS/guts Expert help needed (Score:1)
Reply to This
Parent
Re: (Score:2)
Re: (Score:1)
SV *
getline(str)
SV * str
CODE:
{
STRLEN len;
char *cval = SvPV(str, len);
Re: (Score:2)
Re: (Score:1)
CLEANUP section:
CLEANUP:
free (ret);
Custom typemap: in a typemap file:
TYPEMAP
char_own * T_CHAR_OWN
OUTPUT
T_CHAR_OWN
sv_setpv ((SV*)$arg, $var);
g_f