We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab135d8 + e420741 commit 029a324Copy full SHA for 029a324
crates/roc_host_lib/src/lib.rs
@@ -1,12 +1,13 @@
1
use roc_env::arg::ArgToAndFromHost;
2
+use std::ffi::c_char;
3
4
/// # Safety
5
/// This function is the entry point for the program, it will be linked by roc using the legacy linker
6
/// to produce the final executable.
7
///
8
/// Note we use argc and argv to pass arguments to the program instead of std::env::args().
9
#[no_mangle]
-pub unsafe extern "C" fn main(argc: usize, argv: *const *const i8) -> i32 {
10
+pub unsafe extern "C" fn main(argc: usize, argv: *const *const c_char) -> i32 {
11
let args = std::slice::from_raw_parts(argv, argc)
12
.iter()
13
.map(|&c_ptr| {
0 commit comments