From 1c9cd715a322e2700d770c178aa50d426f539e03 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 2 Dec 2004 16:11:51 +0000 Subject: [PATCH] used new firm_config.h, removed POINSON (unclear if it will work in non-linux-kernel environment) [r4548] --- ir/adt/list.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ir/adt/list.h b/ir/adt/list.h index af083a7db..f85b2d5a1 100644 --- a/ir/adt/list.h +++ b/ir/adt/list.h @@ -6,15 +6,7 @@ #ifndef _FIRM_LIST_H #define _FIRM_LIST_H -#include "config.h" - -/* - * These are non-NULL pointers that will result in page faults - * under normal circumstances, used to verify that nobody uses - * non-initialized list entries. - */ -#define LIST_POISON1 ((void *) 0x00100100) -#define LIST_POISON2 ((void *) 0x00200200) +#include "firm_config.h" /* * Simple doubly linked list implementation. @@ -109,8 +101,8 @@ static INLINE void __list_del(struct list_head * prev, struct list_head * next) static INLINE void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); - entry->next = LIST_POISON1; - entry->prev = LIST_POISON2; + entry->next = NULL; + entry->prev = NULL; } -- 2.20.1