mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
remove all definitions of roc_memcpy
This commit is contained in:
parent
ebc6bd3f45
commit
75a035e12d
53 changed files with 32 additions and 284 deletions
|
@ -9,7 +9,7 @@ use core::mem::MaybeUninit;
|
|||
use glue::Metadata;
|
||||
use roc_std::{RocDict, RocList, RocResult, RocStr};
|
||||
use std::borrow::{Borrow, Cow};
|
||||
use std::ffi::{ OsStr};
|
||||
use std::ffi::OsStr;
|
||||
use std::fs::File;
|
||||
use std::io::Write;
|
||||
use std::path::Path;
|
||||
|
@ -199,11 +199,6 @@ fn display_roc_fn(module_name: &str, fn_name: &str) -> String {
|
|||
format!("\u{001B}[36m{module_name}\u{001B}[39m.{fn_name}")
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn roc_memcpy(dst: *mut c_void, src: *mut c_void, n: usize) -> *mut c_void {
|
||||
libc::memcpy(dst, src, n)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn roc_memset(dst: *mut c_void, c: i32, n: usize) -> *mut c_void {
|
||||
libc::memset(dst, c, n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue