Rename wapp_str8_buf_alloc to wapp_str8_alloc_buf
This commit is contained in:
@@ -80,14 +80,14 @@ TestFuncResult test_str8_buf(void) {
|
||||
return wapp_tester_result(result);
|
||||
}
|
||||
|
||||
TestFuncResult test_str8_buf_alloc(void) {
|
||||
TestFuncResult test_str8_alloc_buf(void) {
|
||||
bool result;
|
||||
Allocator allocator = wapp_mem_arena_allocator_init(MB(10));
|
||||
if (wapp_mem_allocator_invalid(&allocator)) {
|
||||
return wapp_tester_result(false);
|
||||
}
|
||||
|
||||
Str8 *s = wapp_str8_buf_alloc(&allocator, 4096);
|
||||
Str8 *s = wapp_str8_alloc_buf(&allocator, 4096);
|
||||
result = s != NULL && s->capacity == 4096;
|
||||
|
||||
wapp_mem_arena_allocator_destroy(&allocator);
|
||||
|
@@ -10,7 +10,7 @@ BEGIN_C_LINKAGE
|
||||
TestFuncResult test_str8_lit(void);
|
||||
TestFuncResult test_str8_lit_ro(void);
|
||||
TestFuncResult test_str8_buf(void);
|
||||
TestFuncResult test_str8_buf_alloc(void);
|
||||
TestFuncResult test_str8_alloc_buf(void);
|
||||
TestFuncResult test_str8_alloc_cstr(void);
|
||||
TestFuncResult test_str8_alloc_str8(void);
|
||||
TestFuncResult test_str8_get_index_within_bounds(void);
|
||||
|
@@ -16,7 +16,7 @@ int main(void) {
|
||||
test_str8_lit,
|
||||
test_str8_lit_ro,
|
||||
test_str8_buf,
|
||||
test_str8_buf_alloc,
|
||||
test_str8_alloc_buf,
|
||||
test_str8_alloc_cstr,
|
||||
test_str8_alloc_str8,
|
||||
test_str8_get_index_within_bounds,
|
||||
|
Reference in New Issue
Block a user