[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] [PATCH] hide symbols for helper xmalloc/xrealloc/xfre
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] [PATCH] hide symbols for helper xmalloc/xrealloc/xfree functions |
Date: |
Thu, 11 Jun 2009 19:27:25 -0400 |
User-agent: |
Thunderbird 2.0.0.21 (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-
known interfaces.
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
interface.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/