GNU header update.
[cacao.git] / src / toolbox / list.c
index 5ab4fa44f760e6fc71632babaadebe2368fba159..d06f1ca92e63a97e179a4923478a5e43162d25fb 100644 (file)
@@ -1,10 +1,9 @@
 /* toolbox/list.c - 
 
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
-   Institut f. Computersprachen, TU Wien
-   R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Probst,
-   S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich,
-   J. Wenninger
+   Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+   R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+   C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+   Institut f. Computersprachen - TU Wien
 
    This file is part of CACAO.
 
 
    Authors: Reinhard Grafl
 
-   $Id: list.c 1141 2004-06-05 23:19:24Z twisti $
+   $Id: list.c 1735 2004-12-07 14:33:27Z twisti $
 
 */
 
 
-#include <stdio.h>
 #include <stdlib.h>
-#include <assert.h>
 
-#include "global.h"
 #include "toolbox/list.h"
 
 
@@ -103,6 +99,9 @@ void list_remove(list *l, void *element)
        } else {
                l->first = n->next;
        }
+
+       n->next = NULL;
+       n->prev = NULL;
 }