This repository was archived by the owner on Jun 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ use std::io::Write;
3
3
use liblumen_rt:: function:: ErlangResult ;
4
4
use liblumen_rt:: term:: * ;
5
5
6
+ #[ allow( improper_ctypes_definitions) ]
6
7
#[ export_name = "erlang:display/1" ]
7
8
pub extern "C-unwind" fn display ( term : OpaqueTerm ) -> ErlangResult {
8
9
let term: Term = term. into ( ) ;
9
10
println ! ( "{}" , & term) ;
10
11
Ok ( true . into ( ) )
11
12
}
12
13
14
+ #[ allow( improper_ctypes_definitions) ]
13
15
#[ export_name = "erlang:puts/1" ]
14
16
pub extern "C-unwind" fn puts ( printable : OpaqueTerm ) -> ErlangResult {
15
17
let printable: Term = printable. into ( ) ;
@@ -23,11 +25,13 @@ pub extern "C-unwind" fn puts(printable: OpaqueTerm) -> ErlangResult {
23
25
Ok ( true . into ( ) )
24
26
}
25
27
28
+ #[ allow( improper_ctypes_definitions) ]
26
29
#[ export_name = "erlang:is_atom/1" ]
27
30
pub extern "C-unwind" fn is_atom ( term : OpaqueTerm ) -> ErlangResult {
28
31
Ok ( term. is_atom ( ) . into ( ) )
29
32
}
30
33
34
+ #[ allow( improper_ctypes_definitions) ]
31
35
#[ export_name = "erlang:=:=/2" ]
32
36
pub extern "C-unwind" fn exact_eq ( lhs : OpaqueTerm , rhs : OpaqueTerm ) -> ErlangResult {
33
37
let lhs: Term = lhs. into ( ) ;
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ use crate::env;
5
5
use crate :: scheduler;
6
6
7
7
extern "C-unwind" {
8
+ #[ allow( improper_ctypes) ]
9
+ #[ allow( improper_ctypes_definitions) ]
8
10
#[ link_name = "init:boot/1" ]
9
11
fn boot ( argv : OpaqueTerm ) -> ErlangResult ;
10
12
}
@@ -16,6 +18,7 @@ extern "C-unwind" {
16
18
/// a different module, `Module:boot/1`.
17
19
///
18
20
/// NOTE: When this function is invoked, it is on the stack of the new process, not the scheduler.
21
+ #[ allow( improper_ctypes_definitions) ]
19
22
pub ( crate ) extern "C-unwind" fn start ( ) -> ErlangResult {
20
23
scheduler:: with_current_process ( |process| {
21
24
let argv = env:: argv ( ) ;
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ pub unsafe extern "C-unwind" fn process_yield() -> bool {
79
79
scheduler:: with_current ( |scheduler| scheduler. process_yield ( ) )
80
80
}
81
81
82
+ #[ allow( improper_ctypes_definitions) ]
82
83
#[ export_name = "__lumen_builtin_exit" ]
83
84
pub unsafe extern "C-unwind" fn process_exit ( result : ErlangResult ) {
84
85
scheduler:: with_current ( |scheduler| {
You can’t perform that action at this time.
0 commit comments