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