summaryrefslogtreecommitdiffstats
path: root/list.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-10-10 23:47:29 +0200
committerpgen <p.gen.progs@gmail.com>2018-10-11 01:02:41 +0200
commit2aeefb23a183f4de00bc389c21c6c5669d4b9a69 (patch)
tree263154318e7bbfe82d06c574cabd83be1888d763 /list.h
parentfdc9bbedae48ef73e040b2ad0bd4d637261346f9 (diff)
Various small changes
Diffstat (limited to 'list.h')
-rw-r--r--list.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/list.h b/list.h
index 76c7b40..90bca3f 100644
--- a/list.h
+++ b/list.h
@@ -29,21 +29,20 @@ struct ll_s
int
ll_append(ll_t * const list, void * const data);
-#if 0 /* here for coherency but not used. */
-int ll_prepend(ll_t * const list, void *const data);
+int
+ll_prepend(ll_t * const list, void * const data);
void
-ll_insert_before(ll_t * const list, ll_node_t * node, void *const data);
+ll_insert_before(ll_t * const list, ll_node_t * node, void * const data);
void
-ll_insert_after(ll_t * const list, ll_node_t * node, void *const data);
-#endif
+ll_insert_after(ll_t * const list, ll_node_t * node, void * const data);
-ll_node_t *
+static ll_node_t *
ll_partition(ll_node_t * l, ll_node_t * h, int (*comp)(void *, void *),
void (*swap)(void *, void *));
-void
+static void
ll_quicksort(ll_node_t * l, ll_node_t * h, int (*comp)(void *, void *),
void (*swap)(void * a, void *));