File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
use core:: ffi:: c_void;
4
4
5
5
extern "C" {
6
- pub fn mi_zalloc ( size : usize ) -> * const c_void ;
7
- pub fn mi_malloc ( size : usize ) -> * const c_void ;
8
- pub fn mi_realloc ( p : * const c_void , size : usize ) -> * const c_void ;
9
- pub fn mi_zalloc_aligned ( size : usize , alignment : usize ) -> * const c_void ;
10
- pub fn mi_malloc_aligned ( size : usize , alignment : usize ) -> * const c_void ;
11
- pub fn mi_realloc_aligned ( p : * const c_void , size : usize , alignment : usize ) -> * const c_void ;
12
- pub fn mi_free ( p : * const c_void ) -> c_void ;
6
+ pub fn mi_zalloc ( size : usize ) -> * mut c_void ;
7
+ pub fn mi_malloc ( size : usize ) -> * mut c_void ;
8
+ pub fn mi_realloc ( p : * mut c_void , size : usize ) -> * mut c_void ;
9
+ pub fn mi_zalloc_aligned ( size : usize , alignment : usize ) -> * mut c_void ;
10
+ pub fn mi_malloc_aligned ( size : usize , alignment : usize ) -> * mut c_void ;
11
+ pub fn mi_realloc_aligned ( p : * mut c_void , size : usize , alignment : usize ) -> * mut c_void ;
12
+ pub fn mi_free ( p : * mut c_void ) -> c_void ;
13
13
pub fn mi_usable_size ( p : * mut c_void ) -> usize ;
14
14
}
15
15
You can’t perform that action at this time.
0 commit comments