From 86e685b2638adcb8ee05c7887b1db8f7dff398b2 Mon Sep 17 00:00:00 2001 From: Chen Peng Date: Thu, 9 Jul 2026 10:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AppKit/arena.c | 6 +++--- AppKit/arena.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/AppKit/arena.c b/AppKit/arena.c index 1e681cb..50e6fa4 100644 --- a/AppKit/arena.c +++ b/AppKit/arena.c @@ -111,15 +111,15 @@ void arean_destroy(arena_t* self){ /* */ -temp_arena_memory_t temp_arena_memory_begin(arena_t *a) { - temp_arena_memory_t temp; +arena_temp_memory_t arena_temp_memory_begin(arena_t *a) { + arena_temp_memory_t temp; temp.arena = a; temp.prev_offset = a->prev_offset; temp.curr_offset = a->curr_offset; return temp; } -void temp_arena_memory_end(temp_arena_memory_t temp) { +void arena_temp_memory_end(arena_temp_memory_t temp) { temp.arena->prev_offset = temp.prev_offset; temp.arena->curr_offset = temp.curr_offset; } diff --git a/AppKit/arena.h b/AppKit/arena.h index c1b21e6..2a115bb 100644 --- a/AppKit/arena.h +++ b/AppKit/arena.h @@ -15,11 +15,11 @@ typedef struct arena_t{ os_size_t curr_offset; }arena_t; -typedef struct temp_arena_memory_t { +typedef struct arena_temp_memory_t { arena_t *arena; size_t prev_offset; size_t curr_offset; -}temp_arena_memory_t; +}arena_temp_memory_t; /* ------------------------------------------------------------------------------------------------------------------ */ @@ -39,8 +39,8 @@ void arean_destroy(arena_t* self); /* ------------------------------------------------------------------------------------------------------------------ */ /* */ -temp_arena_memory_t temp_arena_memory_begin(arena_t *a); +arena_temp_memory_t arena_temp_memory_begin(arena_t *a); -void temp_arena_memory_end(temp_arena_memory_t temp); +void arena_temp_memory_end(arena_temp_memory_t temp); #endif /*INCLUDED_ARENA_H*/