remove all definitions of roc_memcpy

This commit is contained in:
Brendan Hansknecht 2023-06-01 23:04:38 -07:00
parent ebc6bd3f45
commit 75a035e12d
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
53 changed files with 32 additions and 284 deletions

View file

@ -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)