File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 27
27
#![ allow( non_camel_case_types) ]
28
28
29
29
#[ cfg( all( target_os="windows" , target_arch = "x86" , target_env="gnu" ) ) ]
30
- pub mod eh_frames
31
- {
30
+ pub mod eh_frames {
32
31
#[ no_mangle]
33
32
#[ link_section = ".eh_frame" ]
34
33
// Marks beginning of the stack frame unwind info section
@@ -40,7 +39,7 @@ pub mod eh_frames
40
39
41
40
// Unwind info registration/deregistration routines.
42
41
// See the docs of `unwind` module in libstd.
43
- extern {
42
+ extern "C" {
44
43
fn rust_eh_register_frames ( eh_frame_begin : * const u8 , object : * mut u8 ) ;
45
44
fn rust_eh_unregister_frames ( eh_frame_begin : * const u8 , object : * mut u8 ) ;
46
45
}
@@ -58,8 +57,7 @@ pub mod eh_frames
58
57
}
59
58
60
59
// MSVC-specific init/uninit routine registration
61
- pub mod ms_init
62
- {
60
+ pub mod ms_init {
63
61
// .CRT$X?? sections are roughly analogous to ELF's .init_array and .fini_array,
64
62
// except that they exploit the fact that linker will sort them alphabitically,
65
63
// so e.g. sections with names between .CRT$XIA and .CRT$XIZ are guaranteed to be
Original file line number Diff line number Diff line change 14
14
#![ no_std]
15
15
16
16
#[ cfg( all( target_os="windows" , target_arch = "x86" , target_env="gnu" ) ) ]
17
- pub mod eh_frames
18
- {
17
+ pub mod eh_frames {
19
18
// Terminate the frame unwind info section with a 0 as a sentinel;
20
19
// this would be the 'length' field in a real FDE.
21
20
#[ no_mangle]
You can’t perform that action at this time.
0 commit comments