Unify struct names and tags
This commit is contained in:
@@ -134,7 +134,7 @@ void _array_clear(GenericArray *array, u64 item_size);
|
||||
GenericArray *_array_alloc_capacity(const Allocator *allocator, u64 capacity, u64 item_size, b8 fill);
|
||||
|
||||
// Base array types
|
||||
typedef struct str8 Str8;
|
||||
typedef struct Str8 Str8;
|
||||
|
||||
WAPP_DEF_ARRAY_TYPE(void *, VoidPtrArray);
|
||||
WAPP_DEF_ARRAY_TYPE(c8 , C8Array);
|
||||
|
||||
@@ -81,7 +81,7 @@ GenericNode *_dbl_list_remove(GenericList *list, u64 index, u64 item_size);
|
||||
void _dbl_list_empty(GenericList *list, u64 item_size);
|
||||
|
||||
// Base list types
|
||||
typedef struct str8 Str8;
|
||||
typedef struct Str8 Str8;
|
||||
|
||||
WAPP_DEF_DBL_LIST_TYPE(void *, VoidPtrNode, VoidPtrList);
|
||||
WAPP_DEF_DBL_LIST_TYPE(c8 , C8Node , C8List);
|
||||
|
||||
@@ -17,8 +17,8 @@ typedef void *(MemReallocFunc)(void *ptr, u64 old_size, u64 new_size, void *all
|
||||
typedef void *(MemReallocAlignedFunc)(void *ptr, u64 old_size, u64 new_size, u64 alignment, void *alloc_obj);
|
||||
typedef void (MemFreeFunc)(void **ptr, u64 size, void *alloc_obj);
|
||||
|
||||
typedef struct allocator Allocator;
|
||||
struct allocator {
|
||||
typedef struct Allocator Allocator;
|
||||
struct Allocator {
|
||||
void *obj;
|
||||
MemAllocFunc *alloc;
|
||||
MemAllocAlignedFunc *alloc_aligned;
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
BEGIN_C_LINKAGE
|
||||
#endif // !WAPP_PLATFORM_CPP
|
||||
|
||||
typedef struct str8 Str8;
|
||||
struct str8 {
|
||||
typedef struct Str8 Str8;
|
||||
struct Str8 {
|
||||
u64 capacity;
|
||||
u64 size;
|
||||
c8 *buf;
|
||||
|
||||
Reference in New Issue
Block a user