[Dancer-changes] CVS: dancer/src list.h,1.1.1.1,1.2
Brought to you by:
bagder
|
From: Elmar H. <el...@us...> - 2003-05-29 12:27:04
|
Update of /cvsroot/dancer/dancer/src In directory sc8-pr-cvs1:/tmp/cvs-serv3697 Modified Files: list.h Log Message: remove superfluous token concatenation to fix compiling with GCC 3.3 Index: list.h =================================================================== RCS file: /cvsroot/dancer/dancer/src/list.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- list.h 13 Nov 2000 02:42:45 -0000 1.1.1.1 +++ list.h 29 May 2003 12:26:59 -0000 1.2 @@ -52,10 +52,10 @@ ((NULL == (list)) || (NULL == ((header *)(list))->next)) /* NewList creates a header for a list of the specified type */ -#define NewList(type) ( ##type## *)calloc(1, sizeof( ##type## )) +#define NewList(type) (type *)calloc(1, sizeof(type)) /* NewEntry allocates a new entry of the specified type */ -#define NewEntry(type) ( ##type## *)calloc(1, sizeof( ##type## )) +#define NewEntry(type) (type *)calloc(1, sizeof(type)) #define RemoveFirst(list) RemoveEntry((list), (list).h->next) #define RemoveLast(list) RemoveEntry((list), (list).h->prev) |