Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18adcef

Browse files
committed
Remove LONG
1 parent4eaaf7d commit18adcef

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎std/src/sys/pal/windows/c.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
usecrate::ffi::CStr;
99
usecrate::mem;
1010
pubusecrate::os::raw::c_int;
11-
usecrate::os::raw::{c_char,c_long,c_uint, c_ulong, c_ushort, c_void};
11+
usecrate::os::raw::{c_char, c_uint, c_ulong, c_ushort, c_void};
1212
usecrate::os::windows::io::{AsRawHandle,BorrowedHandle};
1313
usecrate::ptr;
1414

@@ -18,8 +18,6 @@ mod windows_sys;
1818
pubuse windows_sys::*;
1919

2020
pubtypeDWORD =c_ulong;
21-
#[cfg_attr(target_vendor ="uwp", allow(unused))]
22-
pubtypeLONG =c_long;
2321
pubtypeUINT =c_uint;
2422
pubtypeWCHAR =u16;
2523
pubtypeUSHORT =c_ushort;

‎std/src/sys/pal/windows/stack_overflow.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub unsafe fn reserve_stack() {
1111
debug_assert_ne!(result,0,"failed to reserve stack space for exception handling");
1212
}
1313

14-
unsafeextern"system"fnvectored_handler(ExceptionInfo:*mut c::EXCEPTION_POINTERS) ->c::LONG{
14+
unsafeextern"system"fnvectored_handler(ExceptionInfo:*mut c::EXCEPTION_POINTERS) ->i32{
1515
unsafe{
1616
let rec =&(*(*ExceptionInfo).ExceptionRecord);
1717
let code = rec.ExceptionCode;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp