Use core/linked_list.h

This commit is contained in:
Krzosa Karol
2023-04-02 12:15:36 +02:00
parent e2140817df
commit 031cc2c5af
2 changed files with 2 additions and 104 deletions

View File

@@ -4,6 +4,7 @@
#define ARRAY_ALLOCATE(allocator, size) allocate_size(allocator, size)
#define ARRAY_DEALLOCATE(allocator, p) deallocate(allocator, p)
#include "core/array.hpp"
#include "core/linked_list.h"
//-----------------------------------------------------------------------------
// Map
@@ -291,7 +292,7 @@ void list_make_sure_there_is_room_for_item_count(Allocator *arena, List<T> *list
}
assert(node);
DLL_QUEUE_ADD_LAST(list->first, list->last, node);
DLL_QUEUE_ADD(list->first, list->last, node);
}
}