aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-03-23 23:37:25 +0800
committerMistivia <i@mistivia.com>2025-03-23 23:37:25 +0800
commit4f7f0aa49844756dbf430f35600d7c88e1a6a730 (patch)
tree7b3fcc235f33ebec5c7623b6cc3946a138162682 /src/utils.h
parent45e53e55aa555d5a53d9d489e8447e9112eac1f0 (diff)
refactor names
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.h b/src/utils.h
index af5e820..1a88220 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -4,11 +4,11 @@
#include <stdlib.h>
struct allocator;
-typedef struct allocator *Allocator;
+typedef struct allocator * allocator_t;
-Allocator newAllocator();
-void deleteAllocator(Allocator allocator);
+allocator_t new_allocator();
+void delete_allocator(allocator_t allocator);
-void* allocate(Allocator allocator, size_t size);
+void* allocate(allocator_t allocator, size_t size);
#endif // FVM_UTILS_H_