aboutsummaryrefslogtreecommitdiff
path: root/include/splay-tree.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2000-02-22 16:18:13 +0000
committerIan Lance Taylor <ian@airs.com>2000-02-22 16:18:13 +0000
commitcc89ffe60ba6d7f80278431ac8da8385d34c3af7 (patch)
tree8ac5ad59f2c0a9b5dccf45dba87e14c320b67061 /include/splay-tree.h
parente2eaf477991014a67bc122c3225f6a3fe6d1a8e6 (diff)
downloadgdb-cc89ffe60ba6d7f80278431ac8da8385d34c3af7.zip
gdb-cc89ffe60ba6d7f80278431ac8da8385d34c3af7.tar.gz
gdb-cc89ffe60ba6d7f80278431ac8da8385d34c3af7.tar.bz2
import libiberty from egcs
Diffstat (limited to 'include/splay-tree.h')
-rw-r--r--include/splay-tree.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/splay-tree.h b/include/splay-tree.h
index e828fe7..6d70c8d 100644
--- a/include/splay-tree.h
+++ b/include/splay-tree.h
@@ -44,7 +44,7 @@ typedef unsigned long int splay_tree_key;
typedef unsigned long int splay_tree_value;
/* Forward declaration for a node in the tree. */
-typedef struct splay_tree_node *splay_tree_node;
+typedef struct splay_tree_node_s *splay_tree_node;
/* The type of a function which compares two splay-tree keys. The
function should return values as for qsort. */
@@ -62,7 +62,7 @@ typedef void (*splay_tree_delete_value_fn) PARAMS((splay_tree_value));
typedef int (*splay_tree_foreach_fn) PARAMS((splay_tree_node, void*));
/* The nodes in the splay tree. */
-struct splay_tree_node
+struct splay_tree_node_s
{
/* The key. */
splay_tree_key key;
@@ -76,7 +76,7 @@ struct splay_tree_node
};
/* The splay tree itself. */
-typedef struct splay_tree
+typedef struct splay_tree_s
{
/* The root of the tree. */
splay_tree_node root;
@@ -95,7 +95,8 @@ extern splay_tree splay_tree_new PARAMS((splay_tree_compare_fn,
splay_tree_delete_key_fn,
splay_tree_delete_value_fn));
extern void splay_tree_delete PARAMS((splay_tree));
-extern void splay_tree_insert PARAMS((splay_tree,
+extern splay_tree_node splay_tree_insert
+ PARAMS((splay_tree,
splay_tree_key,
splay_tree_value));
extern splay_tree_node splay_tree_lookup