summaryrefslogtreecommitdiff
path: root/src/common/dllist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dllist.c')
-rw-r--r--src/common/dllist.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/common/dllist.c b/src/common/dllist.c
index 1ee7b0d..92406d7 100644
--- a/src/common/dllist.c
+++ b/src/common/dllist.c
@@ -29,10 +29,10 @@
/* Découpe une liste en deux parties. */
-static void split_dl_lists(dl_list_head, dl_list_head *, dl_list_head *);
+static void split_dl_lists(dl_list_head_t, dl_list_head_t *, dl_list_head_t *);
/* Trie une liste chaînée en supprimant les éléments identiques. */
-static dl_list_head sort_and_merge_dl_lists_no_dup(dl_list_head *, dl_list_head *, size_t *, __dl_item_compar_fn_t, dl_list_head *);
+static dl_list_head_t sort_and_merge_dl_lists_no_dup(dl_list_head_t *, dl_list_head_t *, size_t *, __dl_item_compar_fn_t, dl_list_head_t *);
@@ -51,7 +51,7 @@ static dl_list_head sort_and_merge_dl_lists_no_dup(dl_list_head *, dl_list_head
* *
******************************************************************************/
-void __dl_list_add(dl_list_item *new, dl_list_head *head, dl_list_item *prev, dl_list_item *next)
+void __dl_list_add(dl_list_item_t *new, dl_list_head_t *head, dl_list_item_t *prev, dl_list_item_t *next)
{
prev->next = new;
new->prev = prev;
@@ -78,7 +78,7 @@ void __dl_list_add(dl_list_item *new, dl_list_head *head, dl_list_item *prev, dl
* *
******************************************************************************/
-void __dl_list_del(dl_list_item *item, dl_list_head *head)
+void __dl_list_del(dl_list_item_t *item, dl_list_head_t *head)
{
item->next->prev = item->prev;
item->prev->next = item->next;
@@ -106,10 +106,10 @@ void __dl_list_del(dl_list_item *item, dl_list_head *head)
* *
******************************************************************************/
-static void split_dl_lists(dl_list_head list, dl_list_head *part1, dl_list_head *part2)
+static void split_dl_lists(dl_list_head_t list, dl_list_head_t *part1, dl_list_head_t *part2)
{
- dl_list_item *iter_slow; /* Boucle de parcours #1 */
- dl_list_item *iter_fast; /* Boucle de parcours #2 */
+ dl_list_item_t *iter_slow; /* Boucle de parcours #1 */
+ dl_list_item_t *iter_fast; /* Boucle de parcours #2 */
*part1 = list;
@@ -159,11 +159,11 @@ static void split_dl_lists(dl_list_head list, dl_list_head *part1, dl_list_head
* *
******************************************************************************/
-static dl_list_head sort_and_merge_dl_lists_no_dup(dl_list_head *a, dl_list_head *b, size_t *length, __dl_item_compar_fn_t compar, dl_list_head *duplicated)
+static dl_list_head_t sort_and_merge_dl_lists_no_dup(dl_list_head_t *a, dl_list_head_t *b, size_t *length, __dl_item_compar_fn_t compar, dl_list_head_t *duplicated)
{
- dl_list_head result; /* Liste fusionnée à renvoyer */
+ dl_list_head_t result; /* Liste fusionnée à renvoyer */
int ret; /* Bilan d'une comparaison */
- dl_list_head next; /* Maillons de liste suivants */
+ dl_list_head_t next; /* Maillons de liste suivants */
if (dl_list_empty(*a))
result = *b;
@@ -253,10 +253,10 @@ static dl_list_head sort_and_merge_dl_lists_no_dup(dl_list_head *a, dl_list_head
* *
******************************************************************************/
-void sort_dl_list_no_dup(dl_list_head *head, size_t *length, __dl_item_compar_fn_t compar, dl_list_head *duplicated)
+void sort_dl_list_no_dup(dl_list_head_t *head, size_t *length, __dl_item_compar_fn_t compar, dl_list_head_t *duplicated)
{
- dl_list_head part1; /* Première moitiée à traiter */
- dl_list_head part2; /* Seconde moitiée à traiter */
+ dl_list_head_t part1; /* Première moitiée à traiter */
+ dl_list_head_t part2; /* Seconde moitiée à traiter */
/* S'il y a réellement quelque chose à faire */
if (!dl_list_empty(*head) && !_dl_list_is_last(*head, *head))