Re: Questions about Inline::C



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

--
.



Relevant Pages

  • Re: problems to connect to a mysql-database
    ... CAMPBELL, BRIAN D wrote: ... Your Windows path delimiters act as escape chars in Perl. ...
    (perl.dbi.users)
  • Re: perl malloc slow?
    ... >implementation gets disabled by the FreeBSD port)? ... >4.x basesystem doesn't use its own malloc implementation. ... Upgraded Perl 5.8.0 to 5.8.2 which has these switches set already, ... common workloads, which FreeBSD's malloc does." ...
    (freebsd-current)
  • Re: perl malloc slow?
    ... >implementation gets disabled by the FreeBSD port)? ... >4.x basesystem doesn't use its own malloc implementation. ... Upgraded Perl 5.8.0 to 5.8.2 which has these switches set already, ... common workloads, which FreeBSD's malloc does." ...
    (freebsd-stable)
  • Re: DBI Issue with MySQL query
    ... Red Hat Linux Workstation 4.0 on Intel Pentium 4 ... DBI 1.50 ... Don't put single quotes around the table name. ... but fails in perl with a malformed SQL syntax error: ...
    (perl.dbi.users)
  • Perl 5.8.1-RC4 release notes mention FreeBSD malloc upto 200 times slower than perl malloc
    ... it mentions about the Platform specific problems seen by the Perl ... FreeBSD: malloc dilemma ... building Perl is problematic in FreeBSD. ...
    (freebsd-hackers)