gcc/include
Jim Blandy 00c2f96f89 Allow the user to specify functions for allocating memory for splay tree roots and nodes.
include:
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.

From-SVN: r49968
2002-02-22 17:01:23 +00:00
..
ansidecl.h * ansidecl.h: Update comments reflecting previous change. 2001-08-29 19:44:39 +00:00
ChangeLog Allow the user to specify functions for allocating memory for splay tree roots and nodes. 2002-02-22 17:01:23 +00:00
COPYING
demangle.h demangle.h (cplus_demangle_v3): Add "options" parm. 2002-02-05 11:33:31 -05:00
dyn-string.h dyn-string.h, [...]: replace "GNU CC" with "GCC". 2001-08-23 12:07:58 +00:00
fibheap.h dyn-string.h, [...]: replace "GNU CC" with "GCC". 2001-08-23 12:07:58 +00:00
floatformat.h floatformat.h (floatformat_arm_ext): Document as deprecated. 2001-08-21 00:09:09 +00:00
fnmatch.h
getopt.h
hashtab.h * hashtab.h (htab_hash_string): Declare. 2001-08-16 18:54:01 -07:00
libiberty.h * libiberty.h (C_alloca): Add ATTRIBUTE_MALLOC. 2002-01-28 21:08:34 +00:00
md5.h
objalloc.h * objalloc.h (OBJALLOC_ALIGN): Define using offsetof. 2001-09-18 23:09:40 +09:30
obstack.h
partition.h dyn-string.h, [...]: replace "GNU CC" with "GCC". 2001-08-23 12:07:58 +00:00
safe-ctype.h * include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New. 2001-10-24 19:29:16 +00:00
sort.h dyn-string.h, [...]: replace "GNU CC" with "GCC". 2001-08-23 12:07:58 +00:00
splay-tree.h Allow the user to specify functions for allocating memory for splay tree roots and nodes. 2002-02-22 17:01:23 +00:00
symcat.h
ternary.h cp-demangle.c (demangle_v3_with_details, [...]): Use K+R style function definition. 2001-05-08 06:13:58 +00:00
xregex2.h merge from glibc 2001-07-18 19:40:00 -04:00
xregex.h xregex.h (_REGEX_RE_COMP): Define. 2001-08-02 19:23:47 -04:00