Re: Questions about Inline::C
- From: January Weiner <january.weiner@xxxxxxxxx>
- Date: Thu, 28 Sep 2006 12:16:45 +0200 (CEST)
Sisyphus <sisyphus1@xxxxxxxxxxxxxxxxx> wrote:
Yes, I believe so - not sure of the details but I think it has something to
do with the possibility that perl has been compiled with its own malloc()
function.
Instead of malloc(), use New(). (See 'perldoc perlapi'.)
O, thanks, that's cool, many thanks.
In perl you can quote string literals inside either single or double
quotes - but in C you have to use double quotes. Using single quotes will
....oh my. That is what years of writing Perl does to you :-) Sure, I have
completly forgotten. Single quotes are for characters. Of course. Silly me
:-)
newSVpv() has to take 2 arguments - see (again) 'perldoc perlapi'.
Typo when writing the Usenet post. I'm using newSVpvf.
Cheers,
January
--
.
- References:
- Questions about Inline::C
- From: January Weiner
- Re: Questions about Inline::C
- From: Sisyphus
- Questions about Inline::C
- Prev by Date: Re: Questions about Inline::C
- Next by Date: Re: Questions about Inline::C
- Previous by thread: Re: Questions about Inline::C
- Next by thread: FTP from Perl script on Windows
- Index(es):
Relevant Pages
|