[Top][All Lists]

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

[Bug-readline] please rename xmalloc

From: Tom Tromey
Subject: [Bug-readline] please rename xmalloc
Date: Thu, 09 Jan 2014 09:58:20 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)


Right now, readline exports "xmalloc" and "xrealloc".  I think it would
be better if these were renamed to be in the readline namespace.

Currently gdb provides its own xmalloc in the main executable.  This
overrides the readline xmalloc.  However, while experimenting with
removing gdb's copy in favor of the libiberty xmalloc, I tripped across
the readline copy.  Having gdb use libiberty's fails because then gdb
tries to link against two libraries that each provide their own xmalloc.

I can send a readline patch if you think this is acceptable.
I'd suggest rl_malloc and rl_realloc as new names.


reply via email to

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