[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
Mon, 8 Jun 2009 17:38:34 +0200
On Mon, Jun 08, 2009 at 08:50:27AM -0400, Chet Ramey wrote:
> > libreadline is exporting symbols for its internal helper
> > xmalloc/xrealloc/xfree functions. These function names are
> > quite common, but might not behave exactly the same way as
> > readline expects.
> I want applications to have the option to override these functions if
> they so choose.
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?
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."