Mercurial > hg > octave-lojdl > gnulib-hg
annotate lib/gl_avltreehash_list.c @ 17298:d536543d59a6
statat: new module, split out from fstatat
GNU Emacs needs the POSIX-specified fstatat, but not the
gnulib-specified statat and lstat. Split the latter two into a
new module 'statat'.
* lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
* lib/openat.h, lib/statat.c (STATAT_INLINE):
Rename from FSTATAT_INLINE. All uses changed.
* modules/fstatat (Files): Remove lib/statat.c.
(gl_MODULE_INDICATOR([fstatat])): Remove.
(lib_SOURCES): Remove.
(Maintainer): Add self.
* modules/statat, modules/statat-tests, tests/test-statat.c: New files.
* tests/test-fstatat.c (BASE): Don't define if already defined.
(do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 23 Jan 2013 18:20:09 -0800 |
parents | e542fd46ad6f |
children |
rev | line source |
---|---|
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Sequential list data type implemented by a hash table with a binary tree. |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16201
diff
changeset
|
2 Copyright (C) 2006, 2008-2013 Free Software Foundation, Inc. |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 Written by Bruno Haible <bruno@clisp.org>, 2006. |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
7410
diff
changeset
|
5 This program is free software: you can redistribute it and/or modify |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
7410
diff
changeset
|
7 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
7410
diff
changeset
|
8 (at your option) any later version. |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 This program is distributed in the hope that it will be useful, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 GNU General Public License for more details. |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 You should have received a copy of the GNU General Public License |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
7410
diff
changeset
|
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 |
7304
1c4ed7637c24
Include <config.h> unconditionally.
Bruno Haible <bruno@clisp.org>
parents:
6981
diff
changeset
|
18 #include <config.h> |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 /* Specification. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 #include "gl_avltreehash_list.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 |
7383 | 23 #include <stdint.h> /* for SIZE_MAX */ |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 #include <stdlib.h> |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 #include "gl_avltree_oset.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 #include "xsize.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 #ifndef uintptr_t |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 # define uintptr_t unsigned long |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
31 #endif |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 #define WITH_HASHTABLE 1 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
35 /* Which kind of binary trees to use for ordered sets. Quite arbitrary. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 #define OSET_TREE_FLAVOR GL_AVLTREE_OSET |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 /* -------------------------- gl_list_t Data Type -------------------------- */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
40 /* Generic hash-table code: Type definitions. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
41 #include "gl_anyhash_list1.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
42 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
43 /* Generic AVL tree code: Type definitions. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
44 #include "gl_anyavltree_list1.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
45 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
46 /* Generic hash-table code: Low-level code. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
47 #include "gl_anyhash_list2.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
48 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
49 /* Generic binary tree code: Type definitions. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
50 #include "gl_anytree_list1.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
51 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
52 /* Hash-table with binary tree code: Handling of hash buckets. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
53 #include "gl_anytreehash_list1.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
54 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
55 /* Generic AVL tree code: Insertion/deletion algorithms. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
56 #include "gl_anyavltree_list2.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
57 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
58 /* Generic binary tree code: Functions taking advantage of the hash table. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
59 #include "gl_anytreehash_list2.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
60 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
61 /* Generic binary tree code: All other functions. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
62 #include "gl_anytree_list2.h" |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
63 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
64 /* For debugging. */ |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
65 static unsigned int |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
66 check_invariants (gl_list_node_t node, gl_list_node_t parent) |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
67 { |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
68 unsigned int left_height = |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
69 (node->left != NULL ? check_invariants (node->left, node) : 0); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
70 unsigned int right_height = |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
71 (node->right != NULL ? check_invariants (node->right, node) : 0); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
72 int balance = (int)right_height - (int)left_height; |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
73 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
74 if (!(node->parent == parent)) |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
75 abort (); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
76 if (!(node->branch_size |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9686
diff
changeset
|
77 == (node->left != NULL ? node->left->branch_size : 0) |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9686
diff
changeset
|
78 + 1 + (node->right != NULL ? node->right->branch_size : 0))) |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
79 abort (); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
80 if (!(balance >= -1 && balance <= 1)) |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
81 abort (); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
82 if (!(node->balance == balance)) |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
83 abort (); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
84 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
85 return 1 + (left_height > right_height ? left_height : right_height); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
86 } |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
87 void |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
88 gl_avltreehash_list_check_invariants (gl_list_t list) |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
89 { |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
90 if (list->root != NULL) |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
91 check_invariants (list->root, NULL); |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
92 } |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
93 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
94 |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
95 const struct gl_list_implementation gl_avltreehash_list_implementation = |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
96 { |
12445
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
97 gl_tree_nx_create_empty, |
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
98 gl_tree_nx_create, |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
99 gl_tree_size, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
100 gl_tree_node_value, |
12445
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
101 gl_tree_node_nx_set_value, |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
102 gl_tree_next_node, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
103 gl_tree_previous_node, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
104 gl_tree_get_at, |
12445
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
105 gl_tree_nx_set_at, |
7405
0de49c40e105
Add searching operations, limited to a subsequence of the list.
Bruno Haible <bruno@clisp.org>
parents:
7383
diff
changeset
|
106 gl_tree_search_from_to, |
0de49c40e105
Add searching operations, limited to a subsequence of the list.
Bruno Haible <bruno@clisp.org>
parents:
7383
diff
changeset
|
107 gl_tree_indexof_from_to, |
12445
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
108 gl_tree_nx_add_first, |
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
109 gl_tree_nx_add_last, |
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
110 gl_tree_nx_add_before, |
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
111 gl_tree_nx_add_after, |
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
112 gl_tree_nx_add_at, |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
113 gl_tree_remove_node, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
114 gl_tree_remove_at, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
115 gl_tree_remove, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
116 gl_tree_list_free, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
117 gl_tree_iterator, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
118 gl_tree_iterator_from_to, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
119 gl_tree_iterator_next, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
120 gl_tree_iterator_free, |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
121 gl_tree_sortedlist_search, |
7410
9704ff2cbdfe
Add bounded list search operations.
Bruno Haible <bruno@clisp.org>
parents:
7405
diff
changeset
|
122 gl_tree_sortedlist_search_from_to, |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
123 gl_tree_sortedlist_indexof, |
7410
9704ff2cbdfe
Add bounded list search operations.
Bruno Haible <bruno@clisp.org>
parents:
7405
diff
changeset
|
124 gl_tree_sortedlist_indexof_from_to, |
12445
a8c91b846640
Move the malloc checking from module 'list' to new module 'xlist'.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
125 gl_tree_sortedlist_nx_add, |
6981
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
126 gl_tree_sortedlist_remove |
0bc4f2ff0eae
Sequential list data type implemented by a hash table with a binary tree.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
127 }; |