You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucy.apache.org by Peter Karman <pe...@peknet.com> on 2009/09/01 22:59:50 UTC
Re: [Lucy] Re: [Lucy] Passing strings from Host to Lucy
Peter Karman wrote on 09/01/2009 02:29 PM:
> Marvin Humphrey wrote on 09/01/2009 10:58 AM:
>
>> Right now, this data structure bears the whimsical name
>> "ZombieCharBuf", as in
>> "A CharBuf which cannot be Destroyed." ZombieCharBufs are either
>> created on
>> the stack or as compile-time static or global variables; they are never
>> malloc'd. Calling Destroy() on them is illegal and triggers an
[snip]
> ZombieCharBuf *zcb = malloc(sizeof(ZombieCharBuf));
errr, never mind that one.. :/
--
Peter Karman . http://peknet.com/ . peter@peknet.com
Re: [Lucy] Passing strings from Host to Lucy
Posted by Marvin Humphrey <ma...@rectangular.com>.
On Tue, Sep 01, 2009 at 03:59:50PM -0500, Peter Karman wrote:
> > ZombieCharBuf *zcb = malloc(sizeof(ZombieCharBuf));
>
> errr, never mind that one.. :/
:) An entirely understandable mistake. It would be helpful if that chunk of
code refused to compile!
Marvin Humphrey