develooper Front page | perl.perl5.porters | Postings from September 2009

Re: Embedding Perl but redefining its malloc()

Thread Previous | Thread Next
From:
Joshua ben Jore
Date:
September 25, 2009 09:43
Subject:
Re: Embedding Perl but redefining its malloc()
Message ID:
dc5c751d0909250942t6014955dua99e81202c64e20e@mail.gmail.com
On Thu, Sep 24, 2009 at 3:51 PM, Raphael Manfredi
<Raphael_Manfredi@pobox.com> wrote:
> Quoting Joshua ben Jore <twists@gmail.com> from ml.lang.perl.porters:
> :Presently this is done with macros in perl.h and handy.h. I just
> :followed handy.h:Newx's use of safemalloc to perl.h:safesysmalloc
> :which seems to live some lives around embed.h, proto.h and similar.
>
> So what do I do before instantiating the perl interpretor to install
> my own memory management rourtines?

Experiment til it works? Like I said, this is a perl library
compilation time activity so once your C macros are right, you can
compile perl and get it to pick up your new definitions.

Josh

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About