From 3540769b17a4ab0a32544e3d1e78f3b9d00aa0bb Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Mon, 13 Mar 2000 16:49:40 +0000 Subject: [PATCH] We want the next and prev pointer of the inserted link to be NULL. 2000-03-13 Sebastian Wilhelmi * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We want the next and prev pointer of the inserted link to be NULL. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gqueue.c | 8 ++++---- gqueue.c | 8 ++++---- 10 files changed, 48 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index d9306fd01..214082750 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d9306fd01..214082750 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d9306fd01..214082750 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index d9306fd01..214082750 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d9306fd01..214082750 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d9306fd01..214082750 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d9306fd01..214082750 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d9306fd01..214082750 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2000-03-13 Sebastian Wilhelmi + + * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We + want the next and prev pointer of the inserted link to be NULL. + 2000-03-06 Sebastian Wilhelmi * configure.in: Another small change to the pthread_.. search diff --git a/glib/gqueue.c b/glib/gqueue.c index e2a5b7e68..46730a51a 100644 --- a/glib/gqueue.c +++ b/glib/gqueue.c @@ -87,8 +87,8 @@ g_queue_push_head_link (GQueue *queue, { g_return_if_fail (queue != NULL); g_return_if_fail (link != NULL); - g_return_if_fail (link->prev != NULL); - g_return_if_fail (link->next != NULL); + g_return_if_fail (link->prev == NULL); + g_return_if_fail (link->next == NULL); link->next = queue->head; if (queue->head) @@ -119,8 +119,8 @@ g_queue_push_tail_link (GQueue *queue, { g_return_if_fail (queue != NULL); g_return_if_fail (link != NULL); - g_return_if_fail (link->prev != NULL); - g_return_if_fail (link->next != NULL); + g_return_if_fail (link->prev == NULL); + g_return_if_fail (link->next == NULL); link->prev = queue->tail; if (queue->tail) diff --git a/gqueue.c b/gqueue.c index e2a5b7e68..46730a51a 100644 --- a/gqueue.c +++ b/gqueue.c @@ -87,8 +87,8 @@ g_queue_push_head_link (GQueue *queue, { g_return_if_fail (queue != NULL); g_return_if_fail (link != NULL); - g_return_if_fail (link->prev != NULL); - g_return_if_fail (link->next != NULL); + g_return_if_fail (link->prev == NULL); + g_return_if_fail (link->next == NULL); link->next = queue->head; if (queue->head) @@ -119,8 +119,8 @@ g_queue_push_tail_link (GQueue *queue, { g_return_if_fail (queue != NULL); g_return_if_fail (link != NULL); - g_return_if_fail (link->prev != NULL); - g_return_if_fail (link->next != NULL); + g_return_if_fail (link->prev == NULL); + g_return_if_fail (link->next == NULL); link->prev = queue->tail; if (queue->tail)