Rearrange arg order for roc_alloc etc

This commit is contained in:
Richard Feldman 2021-05-24 20:27:04 -04:00
parent 7d7588ca19
commit 0b3715ebee
22 changed files with 166 additions and 161 deletions

View file

@ -32,22 +32,22 @@ extern "C" {
}
#[no_mangle]
pub unsafe fn roc_alloc(_alignment: u32, size: usize) -> *mut c_void {
pub unsafe fn roc_alloc(size: usize, _alignment: u32) -> *mut c_void {
return malloc(size);
}
#[no_mangle]
pub unsafe fn roc_realloc(
_alignment: u32,
c_ptr: *mut c_void,
_old_size: usize,
new_size: usize,
_old_size: usize,
_alignment: u32,
) -> *mut c_void {
return realloc(c_ptr, new_size);
}
#[no_mangle]
pub unsafe fn roc_dealloc(_alignment: u32, c_ptr: *mut c_void) {
pub unsafe fn roc_dealloc(c_ptr: *mut c_void, _alignment: u32) {
return free(c_ptr);
}