diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-08-14 21:02:59 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-08-14 21:02:59 +0000 |
commit | d4c648197db2b8fdbc0fdc9583a8f7c58e019c4c (patch) | |
tree | 6643e9e63325c1541114fd36bc07bb8c4556e1f7 | |
parent | 7bf3e29007350897cb708da01df845f4d58b4173 (diff) | |
download | skalibs-d4c648197db2b8fdbc0fdc9583a8f7c58e019c4c.tar.xz |
Remove avl*_deletenode() macros, document all added functions
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | doc/upgrade.html | 7 | ||||
-rw-r--r-- | src/include/skalibs/avlnode.h | 1 | ||||
-rw-r--r-- | src/include/skalibs/avltree.h | 1 | ||||
-rw-r--r-- | src/include/skalibs/avltreen.h | 2 |
5 files changed, 7 insertions, 8 deletions
@@ -4,9 +4,9 @@ In 2.7.0.0 ---------- - Bugfixes. - - New functions: ipc_timed_sendv(), unlink_void() + - New functions: ipc_timed_sendv(), unlink_void(), genset_deepfree(), gensetdyn_deepfree(), skagetln_loose(), skagetlnsep_loose() - dir_close() now returns void and leaves errno unchanged - - absolutepath(), sarealpath_tmp(), mininetstring, prot functions removed + - absolutepath(), sarealpath_tmp(), avl*_deletnode(), mininetstring, prot functions removed - djbunix.h doesn't include env.h anymore diff --git a/doc/upgrade.html b/doc/upgrade.html index 3f1f1d9..e588c1c 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -19,11 +19,14 @@ <h2> in 2.7.0.0 </h2> <ul> - <li> New functions: <tt>ipc_timed_sendv()</tt>, <tt>unlink_void()</tt> </li> + <li> New functions: <tt>ipc_timed_sendv()</tt>, <tt>unlink_void()</tt>, +<tt>skagetln_loose()</tt>, <tt>skagetlnsep_loose()</tt>, +<tt>genset_deepfree()</tt>, <tt>gensetdyn_deepfree()</tt> </li> <li> The <a href="libstddjb/djbunix.html">dir_close()</a> function now returns void and leaves errno unchanged. </li> <li> The <tt>absolutepath()</tt> and <tt>sarealpath_tmp()</tt> functions, as well -as the <tt>skalibs/mininetstring.h</tt> and <em>prot</em> family of functions, have been removed. </li> +as the <tt>avl*_deletenode()</tt>, <tt>skalibs/mininetstring.h</tt> and <em>prot</em> +families of functions, have been removed. </li> <li> <a href="libstddjb/djbunix.html">skalibs/djbunix.h</a> does not include <tt>skalibs/env.h</tt> anymore. </li> </ul> diff --git a/src/include/skalibs/avlnode.h b/src/include/skalibs/avlnode.h index 69e507b..554a185 100644 --- a/src/include/skalibs/avlnode.h +++ b/src/include/skalibs/avlnode.h @@ -38,7 +38,6 @@ extern int avlnode_extreme (avlnode const *, uint32_t, uint32_t, int, uint32_t * extern uint32_t avlnode_insertnode (avlnode *, uint32_t, uint32_t, uint32_t, dtokfunc_t_ref, cmpfunc_t_ref, void *) ; extern uint32_t avlnode_delete (avlnode *, uint32_t, uint32_t *, void const *, dtokfunc_t_ref, cmpfunc_t_ref, void *) ; -#define avlnode_deletenode(s, max, r, i, dtok, f, p) avlnode_delete(s, max, r, (*(dtok))((s)[i].data), dtok, f, p) extern uint32_t avlnode_iter_nocancel (avlnode *, uint32_t, uint32_t, uint32_t, avliterfunc_t_ref, void *) ; #define avlnode_iter(tree, max, root, f, stuff) (avlnode_iter_nocancel(tree, max, max, root, f, stuff) == (max)) diff --git a/src/include/skalibs/avltree.h b/src/include/skalibs/avltree.h index 8234d95..fe8be43 100644 --- a/src/include/skalibs/avltree.h +++ b/src/include/skalibs/avltree.h @@ -48,7 +48,6 @@ extern int avltree_newnode (avltree *, uint32_t, uint32_t *) ; #define avltree_insertnode(t, i) avltree_setroot(t, avlnode_insertnode(avltree_nodes(t), avltree_totalsize(t), avltree_root(t), i, (t)->dtok, (t)->kcmp, (t)->external)) extern int avltree_insert (avltree *, uint32_t) ; -#define avltree_deletenode(t, i) avltree_delete(t, (*(t)->dtok)(avltree_data(t, i),(t)->external)) extern int avltree_delete (avltree *, void const *) ; #define avltree_iter(t, f, p) avlnode_iter(avltree_nodes(t), avltree_totalsize(t), avltree_root(t), f, p) diff --git a/src/include/skalibs/avltreen.h b/src/include/skalibs/avltreen.h index 09ef480..c8af35e 100644 --- a/src/include/skalibs/avltreen.h +++ b/src/include/skalibs/avltreen.h @@ -47,7 +47,6 @@ extern uint32_t avltreen_newnode (avltreen *, uint32_t) ; #define avltreen_insertnode(t, i) avltreen_setroot(t, avlnode_insertnode(avltreen_nodes(t), avltreen_totalsize(t), avltreen_root(t), i, (t)->dtok, (t)->kcmp, (t)->external)) extern int avltreen_insert (avltreen *, uint32_t) ; -#define avltreen_deletenode(t, i) avltreen_delete(t, avltreen_data(t, i)) extern int avltreen_delete (avltreen *, void const *) ; #define avltreen_iter(t, f, p) avlnode_iter(avltreen_nodes(t), avltreen_totalsize(t), avltreen_root(t), f, p) @@ -82,7 +81,6 @@ extern int avltreen_delete (avltreen *, void const *) ; #define avltreeb_insertnode(t, i) avltreeb_setroot(t, avlnode_insertnode(avltreeb_nodes(t), avltreeb_totalsize(t), avltreeb_root(t), (i), (t)->info.dtok, (t)->info.kcmp, (t)->info.external)) #define avltreeb_insert(t, d) avltreen_insert(&(t)->info, d) -#define avltreeb_deletenode(t, i) avltreeb_delete(t, avltreeb_data(t, i)) #define avltreeb_delete(t, k) avltreen_delete(&(t)->info, k) #define avltreeb_iter(t, f, p) avlnode_iter(avltreeb_nodes(t), avltreeb_totalsize(t), avltreeb_root(t), f, p) |