bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] [PATCH] hide symbols for helper xmalloc/xrealloc/xfre


From: Robert Millan
Subject: Re: [Bug-readline] [PATCH] hide symbols for helper xmalloc/xrealloc/xfree functions
Date: Mon, 8 Jun 2009 17:38:34 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

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?

-- 
Robert Millan

  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."




reply via email to

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