aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/heap_allocator_unix.odin
diff options
context:
space:
mode:
Diffstat (limited to 'base/runtime/heap_allocator_unix.odin')
-rw-r--r--base/runtime/heap_allocator_unix.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/runtime/heap_allocator_unix.odin b/base/runtime/heap_allocator_unix.odin
index 87fb655b1..bfbbb5303 100644
--- a/base/runtime/heap_allocator_unix.odin
+++ b/base/runtime/heap_allocator_unix.odin
@@ -16,7 +16,7 @@ foreign libc {
@(link_name="realloc") _unix_realloc :: proc(ptr: rawptr, size: int) -> rawptr ---
}
-heap_alloc :: proc(size: int, zero_memory := true) -> rawptr {
+_heap_alloc :: proc(size: int, zero_memory := true) -> rawptr {
if size <= 0 {
return nil
}
@@ -27,12 +27,12 @@ heap_alloc :: proc(size: int, zero_memory := true) -> rawptr {
}
}
-heap_resize :: proc(ptr: rawptr, new_size: int) -> rawptr {
+_heap_resize :: proc(ptr: rawptr, new_size: int) -> rawptr {
// NOTE: _unix_realloc doesn't guarantee new memory will be zeroed on
// POSIX platforms. Ensure your caller takes this into account.
return _unix_realloc(ptr, new_size)
}
-heap_free :: proc(ptr: rawptr) {
+_heap_free :: proc(ptr: rawptr) {
_unix_free(ptr)
} \ No newline at end of file