summaryrefslogtreecommitdiff
path: root/src/sp_list.h
diff options
context:
space:
mode:
authorsimon MAGNIN-FEYSOT2018-01-17 19:25:08 +0100
committerjvoisin2018-01-17 19:25:08 +0100
commitb213c8e08b5624da9bb69dd05e132e247bab3082 (patch)
tree70098ca8ea967138d4beb3a1f423e5beb2908fd3 /src/sp_list.h
parent05e4b7ea67e07bb82db2a37930b383d51500b341 (diff)
Remove useless "head" member in our linked lists implementation
This should close #85
Diffstat (limited to 'src/sp_list.h')
-rw-r--r--src/sp_list.h6
1 files changed, 2 insertions, 4 deletions
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 @@
3 3
4typedef struct sp_node_s { 4typedef struct sp_node_s {
5 struct sp_node_s *next; 5 struct sp_node_s *next;
6 struct sp_node_s *head;
7 void *data; 6 void *data;
8 7
9} sp_list_node; 8} sp_list_node;
10 9
11sp_list_node *sp_list_new();
12sp_list_node *sp_list_sort(sp_list_node *, 10sp_list_node *sp_list_sort(sp_list_node *,
13 int (*)(sp_list_node *, sp_list_node *)); 11 int (*)(sp_list_node *, sp_list_node *));
14void sp_list_insert(sp_list_node *, void *); 12sp_list_node *sp_list_insert(sp_list_node *, void *);
13sp_list_node *sp_list_prepend(sp_list_node *, void *);
15void sp_list_free(sp_list_node *); 14void sp_list_free(sp_list_node *);
16void sp_list_prepend(sp_list_node *, void *);
17 15
18#endif 16#endif