Replace FREE method by DEL method as it is a single object.
This commit is contained in:
1 parent
eb769c7b20
commit
750de41984
1 file changed
+2
-2
+2
-2
@@ -120,7 +120,7 @@ typedef struct ilist_head_s {
|
|||||||
type *obj = M_TYPE_FROM_FIELD(type, it, \
|
type *obj = M_TYPE_FROM_FIELD(type, it, \
|
||||||
struct ilist_head_s, name); \
|
struct ilist_head_s, name); \
|
||||||
M_GET_CLEAR oplist (*obj); \
|
M_GET_CLEAR oplist (*obj); \
|
||||||
M_IF_METHOD(FREE, oplist)(M_GET_FREE oplist (obj), (void) 0); \
|
M_IF_METHOD(DEL, oplist)(M_GET_DEL oplist (obj), (void) 0); \
|
||||||
} \
|
} \
|
||||||
list->name.next = &list->name; \
|
list->name.next = &list->name; \
|
||||||
list->name.prev = &list->name; \
|
list->name.prev = &list->name; \
|
||||||
@@ -348,7 +348,7 @@ typedef struct ilist_head_s {
|
|||||||
struct ilist_head_s, name); \
|
struct ilist_head_s, name); \
|
||||||
M_C(name, _unlink)(obj); \
|
M_C(name, _unlink)(obj); \
|
||||||
M_GET_CLEAR oplist (obj); \
|
M_GET_CLEAR oplist (obj); \
|
||||||
M_IF_METHOD(FREE, oplist)(M_GET_FREE oplist (obj), (void) 0); \
|
M_IF_METHOD(DEL, oplist)(M_GET_DEL oplist (obj), (void) 0); \
|
||||||
M_C(name, _next)(it); \
|
M_C(name, _next)(it); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
|||||||
Reference in new issue
Block a user