mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
update hosts with new string conventions
This commit is contained in:
parent
ec403958a3
commit
ba40b6a957
4 changed files with 27 additions and 18 deletions
|
@ -119,7 +119,7 @@ pub extern "C" fn roc_fx_getLine() -> RocStr {
|
|||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn roc_fx_putLine(line: ManuallyDrop<RocStr>) {
|
||||
pub extern "C" fn roc_fx_putLine(line: &RocStr) {
|
||||
let string = line.as_str();
|
||||
println!("{}", string);
|
||||
}
|
||||
|
|
|
@ -146,7 +146,7 @@ fn roc_fx_getLine_help() !RocStr {
|
|||
return str.RocStr.init(@ptrCast([*]const u8, line), line.len);
|
||||
}
|
||||
|
||||
pub export fn roc_fx_putLine(rocPath: str.RocStr) i64 {
|
||||
pub export fn roc_fx_putLine(rocPath: *str.RocStr) i64 {
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
|
||||
for (rocPath.asSlice()) |char| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue