reimplement RocList and RocStr

This commit is contained in:
Tom Dohrmann 2022-02-23 14:49:10 +01:00
parent 16e568be76
commit 788c8a6af2
19 changed files with 680 additions and 792 deletions

View file

@ -59,7 +59,7 @@ pub extern "C" fn rust_main() -> i32 {
let roc_str = roc_main();
let len = roc_str.len();
let str_bytes = roc_str.get_bytes() as *const libc::c_void;
let str_bytes = roc_str.as_bytes().as_ptr() as *const libc::c_void;
if libc::write(1, str_bytes, len) < 0 {
panic!("Writing to stdout failed!");