diff options
| author | Mistivia <i@mistivia.com> | 2025-03-25 12:05:20 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-03-25 12:05:20 +0800 |
| commit | dc87ff4b0c9f311be7fad652594e3766a4ddb0c6 (patch) | |
| tree | 8e7d1c9045b8abec12b4682a2bb4d8a5b217139e /src/utils.h | |
| parent | 4188f791787be19f32226b8ac0f213f61cdd4666 (diff) | |
refactor name
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/utils.h b/src/utils.h index 1a88220..2381385 100644 --- a/src/utils.h +++ b/src/utils.h @@ -4,11 +4,10 @@ #include <stdlib.h> struct allocator; -typedef struct allocator * allocator_t; -allocator_t new_allocator(); -void delete_allocator(allocator_t allocator); +struct allocator * new_allocator(); +void delete_allocator(struct allocator * allocator); -void* allocate(allocator_t allocator, size_t size); +void* allocate(struct allocator * allocator, size_t size); #endif // FVM_UTILS_H_ |
