[EMAIL PROTECTED] 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