From 0d98f51e7dbde4a40c0039910d43ad378eaefa83 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 21 Dec 2017 14:03:18 +0100 Subject: Rename sp_node_t to sp_list_node Since we now have sp_list and sp_tree, it makes sense to specify that nodes are only for lists. --- src/sp_list.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sp_list.h') diff --git a/src/sp_list.h b/src/sp_list.h index 7878f78..b6760ef 100644 --- a/src/sp_list.h +++ b/src/sp_list.h @@ -6,12 +6,12 @@ typedef struct sp_node_s { struct sp_node_s *head; void *data; -} sp_node_t; +} sp_list_node; -sp_node_t *sp_list_new(); -sp_node_t *sp_list_sort(sp_node_t *, int (*)(sp_node_t *, sp_node_t *)); -void sp_list_insert(sp_node_t *, void *); -void sp_list_free(sp_node_t *); -void sp_list_prepend(sp_node_t *, void *); +sp_list_node *sp_list_new(); +sp_list_node *sp_list_sort(sp_list_node *, int (*)(sp_list_node *, sp_list_node *)); +void sp_list_insert(sp_list_node *, void *); +void sp_list_free(sp_list_node *); +void sp_list_prepend(sp_list_node *, void *); #endif -- cgit v1.3