Add missing pub qualifier

This commit is contained in:
Andrzej Janik 2021-06-27 02:35:33 +02:00
parent 23306e944b
commit 1c0deca9e4

View file

@ -1,13 +1,13 @@
use std::ptr;
unsafe fn heap_create() -> *mut c_void {
pub unsafe fn heap_create() -> *mut c_void {
ptr::null_mut()
}
unsafe fn heap_alloc(heap: *mut c_void, bytes: usize) -> *mut c_void {
pub unsafe fn heap_alloc(heap: *mut c_void, bytes: usize) -> *mut c_void {
todo!()
}
unsafe fn heap_free(heap: *mut c_void, alloc: *mut c_void) {
pub unsafe fn heap_free(heap: *mut c_void, alloc: *mut c_void) {
todo!()
}