mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
2bbcdae974
Allow the user to specify functions for allocating memory for splay tree roots and nodes. * splay-tree.h (splay_tree_allocate_fn, splay_tree_deallocate_fn): New types. (splay_tree): New fields: `allocate', `deallocate', and `allocate_data'. (splay_tree_new_with_allocator): New function declaration. libiberty: * splay-tree.c (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate): New functions. (splay_tree_new): Call splay_tree_new_with_allocator, passing the above functions and a dummy data pointer. (splay_tree_new_with_allocator): New function. (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert, splay_tree_remove): Use the splay tree's allocation and deallocation functions. |
||
---|---|---|
.. | ||
aout | ||
coff | ||
elf | ||
mpw | ||
nlm | ||
opcode | ||
regs | ||
alloca-conf.h | ||
ansidecl.h | ||
bfdlink.h | ||
bin-bugs.h | ||
bout.h | ||
callback.h | ||
ChangeLog | ||
COPYING | ||
demangle.h | ||
dis-asm.h | ||
dyn-string.h | ||
fibheap.h | ||
filenames.h | ||
floatformat.h | ||
fnmatch.h | ||
fopen-bin.h | ||
fopen-same.h | ||
fopen-vms.h | ||
gdbm.h | ||
getopt.h | ||
hashtab.h | ||
hp-symtab.h | ||
ieee.h | ||
libiberty.h | ||
MAINTAINERS | ||
md5.h | ||
oasys.h | ||
objalloc.h | ||
obstack.h | ||
os9k.h | ||
partition.h | ||
progress.h | ||
remote-sim.h | ||
safe-ctype.h | ||
sim-d10v.h | ||
sort.h | ||
splay-tree.h | ||
symcat.h | ||
ternary.h | ||
xregex2.h | ||
xregex.h |