fully qualify symbols (with the module name) in generated IR

This commit is contained in:
Folkert 2020-11-10 20:15:59 +01:00
parent 6490956a84
commit acbb4c29b8
7 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@ use roc_std::RocStr;
use std::str;
extern "C" {
#[link_name = "main_1_exposed"]
#[link_name = "Main_main_1_exposed"]
fn say_hello(output: &mut RocCallResult<RocStr>) -> ();
}

View File

@ -3,7 +3,7 @@ use roc_std::RocStr;
use std::str;
extern "C" {
#[link_name = "main_1_exposed"]
#[link_name = "Main_main_1_exposed"]
fn say_hello(output: &mut RocCallResult<RocStr>) -> ();
}

View File

@ -4,16 +4,16 @@ use std::alloc::Layout;
use std::time::SystemTime;
extern "C" {
#[link_name = "makeClosure_1_exposed"]
#[link_name = "Main_makeClosure_1_exposed"]
fn make_closure(output: *mut u8) -> ();
#[link_name = "makeClosure_1_size"]
#[link_name = "Main_makeClosure_1_size"]
fn closure_size() -> i64;
#[link_name = "makeClosure_1_MyClosure_caller"]
#[link_name = "Main_makeClosure_1_MyClosure_caller"]
fn call_MyClosure(function_pointer: *const u8, closure_data: *const u8, output: *mut u8) -> ();
#[link_name = "makeClosure_1_MyClosure_size"]
#[link_name = "Main_makeClosure_1_MyClosure_size"]
fn size_MyClosure() -> i64;
}

View File

@ -3,7 +3,7 @@ use roc_std::RocStr;
use std::str;
extern "C" {
#[link_name = "main_1_exposed"]
#[link_name = "Hello_main_1_exposed"]
fn say_hello(output: &mut RocCallResult<RocStr>) -> ();
}

View File

@ -3,7 +3,7 @@ use roc_std::RocList;
use std::time::SystemTime;
extern "C" {
#[link_name = "quicksort_1_exposed"]
#[link_name = "Quicksort_quicksort_1_exposed"]
fn quicksort(list: RocList<i64>, output: &mut RocCallResult<RocList<i64>>) -> ();
}

View File

@ -3,7 +3,7 @@ use roc_std::RocList;
use std::time::SystemTime;
extern "C" {
#[link_name = "quicksort_1_exposed"]
#[link_name = "Quicksort_quicksort_1_exposed"]
fn quicksort(list: RocList<i64>, output: &mut RocCallResult<RocList<i64>>) -> ();
}

View File

@ -3,7 +3,7 @@ use roc_std::RocList;
use std::time::SystemTime;
extern "C" {
#[link_name = "quicksort_1_exposed"]
#[link_name = "Main_quicksort_1_exposed"]
fn quicksort(list: RocList<i64>, output: &mut RocCallResult<RocList<i64>>) -> ();
}