优化
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user