[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison glr feature request.

From: Paul Eggert
Subject: Re: Bison glr feature request.
Date: Thu, 08 Sep 2005 11:49:05 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

address@hidden writes:

> feature request data/glr.c
> Changing the realloc below in malloc/memcpy/free
> would make things somewhat easier when wrapping
> Bison glr memory allocations to another memory
> subsystem.

Sorry, I don't follow.  By "wrapping" do you mean defining YYFREE,
YYMALLOC, and YYREALLOC to some other allocator?

This is the only invocation of YYREALLOC in the skeleton.  Is your
point that it'd be easier to wrap if the skeleton never invoked
YYREALLOC, so that you needn't implement a realloc wrapper?

I'd rather not have the skeleton do the work of realloc itself.  Aside
from the extra complexity, rewriting the code to avoid realloc would
hurt efficiency in the case where realloc can return the original
pointer, without having to copy the data.

But I suspect that I'm misunderstanding your request....

reply via email to

[Prev in Thread] Current Thread [Next in Thread]