Added
Link Here
|
1 |
--- src/list.h.orig Mon Nov 13 03:42:45 2000 |
2 |
+++ src/list.h Thu Oct 16 22:36:07 2003 |
3 |
@@ -52,10 +52,10 @@ |
4 |
((NULL == (list)) || (NULL == ((header *)(list))->next)) |
5 |
|
6 |
/* NewList creates a header for a list of the specified type */ |
7 |
-#define NewList(type) ( ##type## *)calloc(1, sizeof( ##type## )) |
8 |
+#define NewList(type) (type *)calloc(1, sizeof(type)) |
9 |
|
10 |
/* NewEntry allocates a new entry of the specified type */ |
11 |
-#define NewEntry(type) ( ##type## *)calloc(1, sizeof( ##type## )) |
12 |
+#define NewEntry(type) (type *)calloc(1, sizeof(type)) |
13 |
|
14 |
#define RemoveFirst(list) RemoveEntry((list), (list).h->next) |
15 |
#define RemoveLast(list) RemoveEntry((list), (list).h->prev) |