From b213c8e08b5624da9bb69dd05e132e247bab3082 Mon Sep 17 00:00:00 2001 From: simon MAGNIN-FEYSOT Date: Wed, 17 Jan 2018 19:25:08 +0100 Subject: Remove useless "head" member in our linked lists implementation This should close #85 --- src/sp_list.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/sp_list.h') diff --git a/src/sp_list.h b/src/sp_list.h index 8477463..6b04486 100644 --- a/src/sp_list.h +++ b/src/sp_list.h @@ -3,16 +3,14 @@ typedef struct sp_node_s { struct sp_node_s *next; - struct sp_node_s *head; void *data; } sp_list_node; -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 *); +sp_list_node *sp_list_insert(sp_list_node *, void *); +sp_list_node *sp_list_prepend(sp_list_node *, void *); void sp_list_free(sp_list_node *); -void sp_list_prepend(sp_list_node *, void *); #endif -- cgit v1.3