mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-09-24 02:00:05 +00:00
move str8 list pop to the base layer
This commit is contained in:
@@ -7,20 +7,6 @@ str8_starts_with(String8 string, String8 expected_prefix)
|
||||
return str8_match(str8_prefix(string, expected_prefix.size), expected_prefix, 0);
|
||||
}
|
||||
|
||||
internal String8Node *
|
||||
str8_list_pop_front(String8List *list)
|
||||
{
|
||||
String8Node *node = 0;
|
||||
if (list->node_count) {
|
||||
node = list->first;
|
||||
Assert(list->total_size >= list->first->string.size);
|
||||
list->node_count -= 1;
|
||||
list->total_size -= list->first->string.size;
|
||||
SLLQueuePop(list->first, list->last);
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
||||
internal U64
|
||||
str8_array_bsearch(String8Array arr, String8 value)
|
||||
{
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// TODO: remove
|
||||
internal String8Node * str8_list_pop_front(String8List *list);
|
||||
|
||||
internal B32 str8_starts_with(String8 string, String8 expected_prefix);
|
||||
|
||||
internal U64 str8_array_bsearch(String8Array arr, String8 value);
|
||||
|
||||
Reference in New Issue
Block a user