summaryrefslogtreecommitdiff
path: root/glist.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1999-07-24 18:50:58 +0000
committerTim Janik <timj@src.gnome.org>1999-07-24 18:50:58 +0000
commit87c7aeb93bd654776f59805a342ad913031034f3 (patch)
tree4f43e0cefcbe83a51ffe9aeb24f3386f519a071d /glist.c
parentc8a28b935ca605ece11c65564ad1d3918786dd07 (diff)
downloadglib-87c7aeb93bd654776f59805a342ad913031034f3.tar.gz
18:36. incorporated proposed cleanups from gtk-devel-list.
Sat Jul 24 20:11:35 1999 Tim Janik <timj@gtk.org> * merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36. * incorporated proposed cleanups from gtk-devel-list. * bumped version number to GLib-1.3.1 * glib.h: * gqueue.c: * gstring.c: * glist.c: removed string tokenisation (we got g_strsplit() and g_strjoin() already) and readline functions. s/g_list_delete/g_list_delete_link. implemented g_slist_delete_link. removed notion of g_ATEXIT() macro in glib.h, this is an *internal* macro, g_atexit() is provided for public consumption. added GTrashStack inline utility functions. reimplement double eneded queues. removed GStack implementation, people can use a queue or a (singly) linked list for this task. deprecated g_strescape(), we need the SunOS variants here. * gdate.c: added DEBUG_MSG() macro to wrap old messages. * *.*: CVS merges. * upgrade to libtool 1.3.3.
Diffstat (limited to 'glist.c')
-rw-r--r--glist.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/glist.c b/glist.c
index 3c87a8f1e..b4a89cdff 100644
--- a/glist.c
+++ b/glist.c
@@ -100,7 +100,7 @@ g_list_pop_allocator (void)
G_UNLOCK (current_allocator);
}
-GList*
+inline GList*
g_list_alloc (void)
{
GList *list;
@@ -153,7 +153,7 @@ g_list_free (GList *list)
}
}
-void
+inline void
g_list_free_1 (GList *list)
{
if (list)
@@ -293,7 +293,7 @@ g_list_remove (GList *list,
return list;
}
-GList*
+inline GList*
g_list_remove_link (GList *list,
GList *link)
{
@@ -314,9 +314,9 @@ g_list_remove_link (GList *list,
return list;
}
-
GList*
-g_list_delete (GList *list, GList *link)
+g_list_delete_link (GList *list,
+ GList *link)
{
list = g_list_remove_link (list, link);
g_list_free_1 (link);
@@ -324,7 +324,6 @@ g_list_delete (GList *list, GList *link)
return list;
}
-
GList*
g_list_copy (GList *list)
{