From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5294 invoked by alias); 21 Feb 2002 22:19:16 -0000 Mailing-List: contact src-cvs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: src-cvs-owner@sources.redhat.com Received: (qmail 5256 invoked by uid 442); 21 Feb 2002 22:19:14 -0000 Date: Thu, 21 Feb 2002 14:19:00 -0000 Message-ID: <20020221221914.5250.qmail@sources.redhat.com> From: jimb@sources.redhat.com To: src-cvs@sources.redhat.com Subject: src/libiberty ChangeLog splay-tree.c X-SW-Source: 2002-q1/txt/msg00054.txt.bz2 List-Id: CVSROOT: /cvs/src Module name: src Changes by: jimb@sources.redhat.com 2002-02-21 14:19:13 Modified files: libiberty : ChangeLog splay-tree.c Log message: 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. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/libiberty/ChangeLog.diff?cvsroot=src&r1=1.145&r2=1.146 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/libiberty/splay-tree.c.diff?cvsroot=src&r1=1.7&r2=1.8