[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] [PATCH] hide symbols for helper xmalloc/xrealloc/xfre
Re: [Bug-readline] [PATCH] hide symbols for helper xmalloc/xrealloc/xfree functions
Thu, 11 Jun 2009 19:27:25 -0400
Thunderbird 188.8.131.52 (Macintosh/20090302)
Robert Millan wrote:
> This is troublesome. Imagine you have a large application whose behaviour
> relies on a specific behaviour of xmalloc. It is out of the question to
> change how this xmalloc will work.
> Now imagine you want to use libreadline in this program, and it turns out
> your xmalloc breaks it completely.
> Is there any reasonable solution to this?
This hasn't been a problem to date. As a practical matter, I think the
xmalloc/xrealloc interfaces appear in enough Gnu software to have well-
As I said, I want other Gnu software (e.g., bash) to be able to override
the readline definitions of xmalloc and xrealloc and have all their
`application-space' (non-libc) memory allocation go through a single
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/