LinkedList: Rename append_after to add_after

This commit is contained in:
apio 2022-12-17 15:27:00 +01:00
parent 2bc6398d3e
commit c5220cbf64
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ static Option<HeapBlock*> split(HeapBlock* block, usize size)
new_block->magic = BLOCK_MAGIC;
new_block->status = (block->status & BLOCK_END_MEM) ? BLOCK_END_MEM : 0;
new_block->full_size = old_size - (offset + sizeof(HeapBlock));
heap.append_after(block, new_block);
heap.add_after(block, new_block);
block->status &= ~BLOCK_END_MEM; // this block is no longer the last block in its memory range

View File

@ -76,7 +76,7 @@ template <typename T> class DoublyLinkedList
m_count++;
}
void append_after(T* base, T* ptr)
void add_after(T* base, T* ptr)
{
Node* const new_node = extract_node(ptr);
Node* const base_node = extract_node(base);