LList fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "tlibc/collections/LList.h"
|
||||
#include <assert.h>
|
||||
|
||||
LLNode_* _LList_detatch(LList_* l, LLNode_* n){
|
||||
void _LList_detatch(LList_* l, LLNode_* n){
|
||||
if(n == l->first){
|
||||
l->first = n->next;
|
||||
}
|
||||
@@ -20,7 +21,6 @@ LLNode_* _LList_detatch(LList_* l, LLNode_* n){
|
||||
l->count--;
|
||||
n->prev = NULL;
|
||||
n->next = NULL;
|
||||
return n;
|
||||
}
|
||||
|
||||
void _LList_insertAfter(LList_* l, NULLABLE(LLNode_*) target, LLNode_* detatched)
|
||||
|
||||
Reference in New Issue
Block a user