diff options
| author | simon MAGNIN-FEYSOT | 2018-01-17 19:25:08 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-17 19:25:08 +0100 |
| commit | b213c8e08b5624da9bb69dd05e132e247bab3082 (patch) | |
| tree | 70098ca8ea967138d4beb3a1f423e5beb2908fd3 /src/sp_list.h | |
| parent | 05e4b7ea67e07bb82db2a37930b383d51500b341 (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.h | 6 |
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 | ||
| 4 | typedef struct sp_node_s { | 4 | typedef 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 | ||
| 11 | sp_list_node *sp_list_new(); | ||
| 12 | sp_list_node *sp_list_sort(sp_list_node *, | 10 | sp_list_node *sp_list_sort(sp_list_node *, |
| 13 | int (*)(sp_list_node *, sp_list_node *)); | 11 | int (*)(sp_list_node *, sp_list_node *)); |
| 14 | void sp_list_insert(sp_list_node *, void *); | 12 | sp_list_node *sp_list_insert(sp_list_node *, void *); |
| 13 | sp_list_node *sp_list_prepend(sp_list_node *, void *); | ||
| 15 | void sp_list_free(sp_list_node *); | 14 | void sp_list_free(sp_list_node *); |
| 16 | void sp_list_prepend(sp_list_node *, void *); | ||
| 17 | 15 | ||
| 18 | #endif | 16 | #endif |
