LinkedList: Rename append_after to add_after
This commit is contained in:
parent
2bc6398d3e
commit
c5220cbf64
@ -113,7 +113,7 @@ static Option<HeapBlock*> split(HeapBlock* block, usize size)
|
|||||||
new_block->magic = BLOCK_MAGIC;
|
new_block->magic = BLOCK_MAGIC;
|
||||||
new_block->status = (block->status & BLOCK_END_MEM) ? BLOCK_END_MEM : 0;
|
new_block->status = (block->status & BLOCK_END_MEM) ? BLOCK_END_MEM : 0;
|
||||||
new_block->full_size = old_size - (offset + sizeof(HeapBlock));
|
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
|
block->status &= ~BLOCK_END_MEM; // this block is no longer the last block in its memory range
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ template <typename T> class DoublyLinkedList
|
|||||||
m_count++;
|
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 new_node = extract_node(ptr);
|
||||||
Node* const base_node = extract_node(base);
|
Node* const base_node = extract_node(base);
|
||||||
|
Loading…
Reference in New Issue
Block a user