LList fix
This commit is contained in:
@@ -32,8 +32,8 @@ typedef struct LList(T) { \
|
||||
} LList(T); \
|
||||
\
|
||||
/* Peek node from list. Detatched nodes can be inserted in different place. */ \
|
||||
static inline LLNode(T)* LList_##T##_detatch(LList(T)* l, LLNode(T)* n) \
|
||||
{ return _LList_detatch((void*)l, (void*)n); } \
|
||||
static inline void LList_##T##_detatch(LList(T)* l, LLNode(T)* n) \
|
||||
{ _LList_detatch((void*)l, (void*)n); } \
|
||||
\
|
||||
/* @param detatched must have null .next and .prev */ \
|
||||
/* @param target can be null only if it is l->first or l->last */ \
|
||||
@@ -80,7 +80,7 @@ typedef struct LList_ {
|
||||
} LList_;
|
||||
|
||||
/* Peek node from list. Detatched nodes can be inserted in different place. */
|
||||
LLNode_* _LList_detatch(LList_* l, LLNode_* n);
|
||||
void _LList_detatch(LList_* l, LLNode_* n);
|
||||
|
||||
/* @param detatched must have null .next and .prev */
|
||||
/* @param target can be null only if it is l->first or l->last */
|
||||
|
||||
Reference in New Issue
Block a user