Unify struct names and tags

This commit is contained in:
2026-01-02 14:00:00 +00:00
parent 7be1b42107
commit f3ee1ee468
13 changed files with 22 additions and 22 deletions

View File

@@ -17,7 +17,7 @@
#define ARENA_MINIMUM_CAPACITY KiB(16) // Allocate minimum of 4 pages
struct arena {
struct Arena {
u8 *buf;
u8 *offset;
u64 capacity;

View File

@@ -11,7 +11,7 @@
BEGIN_C_LINKAGE
#endif // !WAPP_PLATFORM_CPP
typedef struct arena Arena;
typedef struct Arena Arena;
#define wapp_mem_arena_init(arena_dptr, base_capacity) \
(wapp_mem_arena_init_custom(arena_dptr, base_capacity, WAPP_MEM_ALLOC_RESERVE, false))

View File

@@ -25,8 +25,8 @@ typedef enum {
SHELL_ERR_PROC_EXIT_FAIL,
} CMDError;
typedef struct commander_result CMDResult;
struct commander_result {
typedef struct CMDResult CMDResult;
struct CMDResult {
i32 exit_code;
CMDError error;
b8 exited;

View File

@@ -13,8 +13,8 @@
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
typedef struct termcolour_data TermcolourData;
struct termcolour_data {
typedef struct TermcolourData TermcolourData;
struct TermcolourData {
HANDLE handle;
WORD default_colour;
WORD current_colour;