File tree 15 files changed +22
-6
lines changed
15 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,7 @@ extern crate libc;
476
476
477
477
#[cfg(target_os = "win32", target_arch = "x86")]
478
478
#[link(name = "kernel32")]
479
+ #[allow(non_snake_case_functions)]
479
480
extern "stdcall" {
480
481
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> libc::c_int;
481
482
}
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
71
71
*/
72
72
73
73
#![ allow( non_camel_case_types) ]
74
+ #![ allow( non_snake_case_functions) ]
74
75
#![ allow( non_uppercase_statics) ]
75
76
#![ allow( missing_doc) ]
76
77
#![ allow( uppercase_variables) ]
Original file line number Diff line number Diff line change 1
- // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
21
21
//! play. The only dependencies of these modules are the normal system libraries
22
22
//! that you would find on the respective platform.
23
23
24
+ #![ allow( non_snake_case_functions) ]
25
+
24
26
use libc:: c_int;
25
27
use libc;
26
28
use std:: c_str:: CString ;
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ mod imp {
141
141
142
142
static LOCKFILE_EXCLUSIVE_LOCK : libc:: DWORD = 0x00000002 ;
143
143
144
+ #[ allow( non_snake_case_functions) ]
144
145
extern "system" {
145
146
fn LockFileEx ( hFile : libc:: HANDLE ,
146
147
dwFlags : libc:: DWORD ,
Original file line number Diff line number Diff line change 1
- // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
27
27
*/
28
28
29
29
#![ allow( missing_doc) ]
30
+ #![ allow( non_snake_case_functions) ]
30
31
31
32
use clone:: Clone ;
32
33
use container:: Container ;
Original file line number Diff line number Diff line change 1
- // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -93,6 +93,7 @@ mod imp {
93
93
static CRYPT_VERIFYCONTEXT : DWORD = 0xF0000000 ;
94
94
static NTE_BAD_SIGNATURE : DWORD = 0x80090006 ;
95
95
96
+ #[ allow( non_snake_case_functions) ]
96
97
extern "system" {
97
98
fn CryptAcquireContextA ( phProv : * mut HCRYPTPROV ,
98
99
pszContainer : LPCSTR ,
Original file line number Diff line number Diff line change @@ -518,6 +518,7 @@ mod imp {
518
518
use unstable:: mutex:: { StaticNativeMutex , NATIVE_MUTEX_INIT } ;
519
519
use slice:: ImmutableVector ;
520
520
521
+ #[ allow( non_snake_case_functions) ]
521
522
extern "system" {
522
523
fn GetCurrentProcess ( ) -> libc:: HANDLE ;
523
524
fn GetCurrentThread ( ) -> libc:: HANDLE ;
Original file line number Diff line number Diff line change 11
11
//! Unwind library interface
12
12
13
13
#![ allow( non_camel_case_types) ]
14
+ #![ allow( non_snake_case_functions) ]
14
15
#![ allow( dead_code) ] // these are just bindings
15
16
16
17
use libc;
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ mod imp {
199
199
SwitchToThread ( ) ;
200
200
}
201
201
202
+ #[ allow( non_snake_case_functions) ]
202
203
extern "system" {
203
204
fn CreateThread ( lpThreadAttributes : LPSECURITY_ATTRIBUTES ,
204
205
dwStackSize : SIZE_T ,
Original file line number Diff line number Diff line change 1
- // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -86,6 +86,7 @@ pub unsafe fn destroy(key: Key) {
86
86
}
87
87
88
88
#[ cfg( windows) ]
89
+ #[ allow( non_snake_case_functions) ]
89
90
extern "system" {
90
91
fn TlsAlloc ( ) -> DWORD ;
91
92
fn TlsFree ( dwTlsIndex : DWORD ) -> BOOL ;
Original file line number Diff line number Diff line change 1
- // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -317,6 +317,7 @@ pub mod dl {
317
317
FreeLibrary ( handle as * libc:: c_void ) ; ( )
318
318
}
319
319
320
+ #[ allow( non_snake_case_functions) ]
320
321
extern "system" {
321
322
fn SetLastError ( error : libc:: size_t ) ;
322
323
fn LoadLibraryW ( name : * libc:: c_void ) -> * libc:: c_void ;
Original file line number Diff line number Diff line change @@ -543,6 +543,7 @@ mod imp {
543
543
libc:: CloseHandle ( block) ;
544
544
}
545
545
546
+ #[ allow( non_snake_case_functions) ]
546
547
extern "system" {
547
548
fn CreateEventA ( lpSecurityAttributes : LPSECURITY_ATTRIBUTES ,
548
549
bManualReset : BOOL ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ pub struct WinConsole<T> {
27
27
background : color:: Color ,
28
28
}
29
29
30
+ #[ allow( non_snake_case_functions) ]
30
31
#[ link( name = "kernel32" ) ]
31
32
extern "system" {
32
33
fn SetConsoleTextAttribute ( handle : libc:: HANDLE , attr : libc:: WORD ) -> libc:: BOOL ;
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
#![ feature( phase) ]
12
+ #![ allow( non_snake_case_functions) ]
12
13
#[ phase( syntax) ] extern crate green;
13
14
extern crate sync;
14
15
Original file line number Diff line number Diff line change 11
11
// ignore-pretty very bad with line comments
12
12
13
13
#![ feature( managed_boxes) ]
14
+ #![ allow( non_snake_case_functions) ]
14
15
15
16
use std:: io;
16
17
use std:: io:: stdio:: StdReader ;
You can’t perform that action at this time.
0 commit comments