[Top][All Lists]

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

[Bug-readline] Re: [bug-inetutils] inetutils-1.8: ftp build error

From: Chet Ramey
Subject: [Bug-readline] Re: [bug-inetutils] inetutils-1.8: ftp build error
Date: Sun, 25 Jul 2010 17:18:02 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 7/25/10 2:36 PM, Mike Frysinger wrote:

> why do you need to use those function names ?  using a name spaced function 
> like rl_malloc or _rl_malloc would keep the same functionality without 
> clashing with other people.

No, it wouldn't.  It would not allow, for instance, an application to
control all the memory allocation and management readline performs.

> "xmalloc" is a pretty common name for people to 
> use in their own projects and i dont think people even realize that readline 
> is doing this.  i know i wasnt aware of it and have used readline along with 
> xmalloc in my application before.

Exactly.  You can override readline's use of xmalloc easily -- almost
without effort.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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