Browse Source

Change `FreeAll` to `Free_All`

gingerBill 7 years ago
parent
commit
6164672421
2 changed files with 4 additions and 4 deletions
  1. 3 3
      core/_preload.odin
  2. 1 1
      core/mem.odin

+ 3 - 3
core/_preload.odin

@@ -151,7 +151,7 @@ Source_Code_Location :: struct {
 Allocator_Mode :: enum byte {
 	Alloc,
 	Free,
-	FreeAll,
+	Free_All,
 	Resize,
 }
 
@@ -317,7 +317,7 @@ free_ptr :: inline proc(ptr: rawptr, loc := #caller_location) do free_ptr_with_a
 
 free_all :: inline proc(loc := #caller_location) {
 	a := context.allocator;
-	a.procedure(a.data, Allocator_Mode.FreeAll, 0, 0, nil, 0, 0, loc);
+	a.procedure(a.data, Allocator_Mode.Free_All, 0, 0, nil, 0, 0, loc);
 }
 
 
@@ -580,7 +580,7 @@ default_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
 		os.heap_free(old_memory);
 		return nil;
 
-	case FreeAll:
+	case Free_All:
 		// NOTE(bill): Does nothing
 
 	case Resize:

+ 1 - 1
core/mem.odin

@@ -183,7 +183,7 @@ arena_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
 		// NOTE(bill): Free all at once
 		// Use ArenaTempMemory if you want to free a block
 
-	case FreeAll:
+	case Free_All:
 		(^raw.Slice)(&arena.memory).len = 0;
 
 	case Resize: