We want the next and prev pointer of the inserted link to be NULL.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Mon, 13 Mar 2000 16:49:40 +0000 (16:49 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Mon, 13 Mar 2000 16:49:40 +0000 (16:49 +0000)
2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* 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
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gqueue.c
gqueue.c

index d9306fd..2140827 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index d9306fd..2140827 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index d9306fd..2140827 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index d9306fd..2140827 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index d9306fd..2140827 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index d9306fd..2140827 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index d9306fd..2140827 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index d9306fd..2140827 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <wilhelmi@ira.uka.de>
 
        * configure.in: Another small change to the pthread_.. search
index e2a5b7e..46730a5 100644 (file)
@@ -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)
index e2a5b7e..46730a5 100644 (file)
--- 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)