Added stack, queue ADTs and related tests.

Tue Mar  9 14:37:32 1999  Jeff Garzik  <jgarzik@pobox.com>

        * Makefile.am, glib.h, gstack.c, gqueue.c,
          tests/Makefile.am, tests/queue-test.c, tests/stack-test.c:
        Added stack, queue ADTs and related tests.

        * glib.h, glist.c:
        New g_list_delete() function.
This commit is contained in:
Jeff Garzik
1999-03-09 19:41:19 +00:00
committed by Jeff Garzik
parent 0ecd369530
commit fd7ba69e32
21 changed files with 751 additions and 10 deletions

11
glist.c
View File

@@ -314,6 +314,17 @@ g_list_remove_link (GList *list,
return list;
}
GList*
g_list_delete (GList *list, GList *link)
{
list = g_list_remove_link (list, link);
g_list_free_1 (link);
return list;
}
GList*
g_list_copy (GList *list)
{