remove casts. The compiler will this generate valuable error messages

This commit is contained in:
Marty Kraimer
2002-02-04 15:02:50 +00:00
parent edd83b8be7
commit 96b978161d
+8 -8
View File
@@ -54,19 +54,19 @@ typedef struct ELLLIST {
#ifdef DLLLIB_USE_MACROS
#define ellInit(PLIST) { ((ELLLIST *)(PLIST))->node.next = NULL;\
((ELLLIST *)(PLIST))->node.previous = NULL;\
((ELLLIST *)(PLIST))->count = 0; }
#define ellInit(PLIST) { (PLIST)->node.next = NULL;\
(PLIST)->node.previous = NULL;\
(PLIST)->count = 0; }
#define ellCount(PLIST) (((ELLLIST *)(PLIST))->count)
#define ellCount(PLIST) ((PLIST)->count)
#define ellFirst(PLIST) (((ELLLIST *)(PLIST))->node.next)
#define ellFirst(PLIST) ((PLIST)->node.next)
#define ellLast(PLIST) (((ELLLIST *)(PLIST))->node.previous)
#define ellLast(PLIST) ((PLIST)->node.previous)
#define ellNext(PNODE) (((ELLNODE *)(PNODE))->next)
#define ellNext(PNODE) ((PNODE)->next)
#define ellPrevious(PNODE) (((ELLNODE *)(PNODE))->previous)
#define ellPrevious(PNODE) ((PNODE)->previous)
#else /*DLLLIB_USE_MACROS*/