|
@@ -156,7 +156,7 @@
|
|
|
struct ENAME *_tail; /**< @internal tail of the list */ \
|
|
|
}; \
|
|
|
/** @internal */LIST_INLINE struct ENAME *ENAME##_new(void) \
|
|
|
- { struct ENAME *e; _STARPU_MALLOC(e, sizeof(struct ENAME)); \
|
|
|
+ { struct ENAME *e; _STARPU_MALLOC_CAST(e, sizeof(struct ENAME), struct ENAME *); \
|
|
|
e->_next = NULL; e->_prev = NULL; return e; } \
|
|
|
/** @internal */LIST_INLINE void ENAME##_delete(struct ENAME *e) \
|
|
|
{ free(e); } \
|
|
@@ -185,7 +185,7 @@
|
|
|
/** @internal */LIST_INLINE void ENAME##_list_init(struct ENAME##_list *l) \
|
|
|
{ l->_head=NULL; l->_tail=l->_head; } \
|
|
|
/** @internal */LIST_INLINE struct ENAME##_list *ENAME##_list_new(void) \
|
|
|
- { struct ENAME##_list *l; _STARPU_MALLOC(l, sizeof(struct ENAME##_list)); \
|
|
|
+ { struct ENAME##_list *l; _STARPU_MALLOC_CAST(l, sizeof(struct ENAME##_list), struct ENAME##_list *); \
|
|
|
ENAME##_list_init(l); return l; } \
|
|
|
/** @internal */LIST_INLINE int ENAME##_list_empty(const struct ENAME##_list *l) \
|
|
|
{ return (l->_head == NULL); } \
|