Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eglib
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2009-09-26 21:06:16 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2009-09-26 21:06:16 +0400
commited640389dc7daaa0422974b3f3d1946a318dd50c (patch)
tree975051573fa7287b6408ed865fc2a61bc72045d3 /eglib
parentc7b305c23591ef9cf09f0c44b64e9a13d2e106aa (diff)
2009-09-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
* gqueue.c: add g_queue_push_tail. svn path=/trunk/mono/; revision=142681
Diffstat (limited to 'eglib')
-rw-r--r--eglib/ChangeLog4
-rw-r--r--eglib/src/gqueue.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/eglib/ChangeLog b/eglib/ChangeLog
index 0b2b96b182d..14df2d317e1 100644
--- a/eglib/ChangeLog
+++ b/eglib/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * src/gqueue.c: add g_queue_push_tail.
+
2009-06-20 Zoltan Varga <vargaz@gmail.com>
* src/glib.h: Add GUINT32_FROM/TO_BE macros.
diff --git a/eglib/src/gqueue.c b/eglib/src/gqueue.c
index fb7083fc6b9..a328275a6ab 100644
--- a/eglib/src/gqueue.c
+++ b/eglib/src/gqueue.c
@@ -71,6 +71,18 @@ g_queue_push_head (GQueue *queue, gpointer head)
queue->length ++;
}
+void
+g_queue_push_tail (GQueue *queue, gpointer data)
+{
+ if (!queue)
+ return;
+
+ queue->tail = g_list_append (queue->tail, data);
+ if (queue->head == NULL)
+ queue->head = queue->tail;
+ queue->length++;
+}
+
GQueue *
g_queue_new (void)
{