File tree Expand file tree Collapse file tree 15 files changed +22
-6
lines changed
Expand file tree Collapse file tree 15 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,7 @@ extern crate libc;
476476
477477#[cfg(target_os = "win32", target_arch = "x86")]
478478#[link(name = "kernel32")]
479+ #[allow(non_snake_case_functions)]
479480extern "stdcall" {
480481 fn SetEnvironmentVariableA(n: *u8, v: *u8) -> libc::c_int;
481482}
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
22// file at the top-level directory of this distribution and at
33// http://rust-lang.org/COPYRIGHT.
44//
7171*/
7272
7373#![ allow( non_camel_case_types) ]
74+ #![ allow( non_snake_case_functions) ]
7475#![ allow( non_uppercase_statics) ]
7576#![ allow( missing_doc) ]
7677#![ 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
22// file at the top-level directory of this distribution and at
33// http://rust-lang.org/COPYRIGHT.
44//
2121//! play. The only dependencies of these modules are the normal system libraries
2222//! that you would find on the respective platform.
2323
24+ #![ allow( non_snake_case_functions) ]
25+
2426use libc:: c_int;
2527use libc;
2628use std:: c_str:: CString ;
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ mod imp {
141141
142142 static LOCKFILE_EXCLUSIVE_LOCK : libc:: DWORD = 0x00000002 ;
143143
144+ #[ allow( non_snake_case_functions) ]
144145 extern "system" {
145146 fn LockFileEx ( hFile : libc:: HANDLE ,
146147 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
22// file at the top-level directory of this distribution and at
33// http://rust-lang.org/COPYRIGHT.
44//
2727 */
2828
2929#![ allow( missing_doc) ]
30+ #![ allow( non_snake_case_functions) ]
3031
3132use clone:: Clone ;
3233use 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
22// file at the top-level directory of this distribution and at
33// http://rust-lang.org/COPYRIGHT.
44//
@@ -93,6 +93,7 @@ mod imp {
9393 static CRYPT_VERIFYCONTEXT : DWORD = 0xF0000000 ;
9494 static NTE_BAD_SIGNATURE : DWORD = 0x80090006 ;
9595
96+ #[ allow( non_snake_case_functions) ]
9697 extern "system" {
9798 fn CryptAcquireContextA ( phProv : * mut HCRYPTPROV ,
9899 pszContainer : LPCSTR ,
Original file line number Diff line number Diff line change @@ -518,6 +518,7 @@ mod imp {
518518 use unstable:: mutex:: { StaticNativeMutex , NATIVE_MUTEX_INIT } ;
519519 use slice:: ImmutableVector ;
520520
521+ #[ allow( non_snake_case_functions) ]
521522 extern "system" {
522523 fn GetCurrentProcess ( ) -> libc:: HANDLE ;
523524 fn GetCurrentThread ( ) -> libc:: HANDLE ;
Original file line number Diff line number Diff line change 1111//! Unwind library interface
1212
1313#![ allow( non_camel_case_types) ]
14+ #![ allow( non_snake_case_functions) ]
1415#![ allow( dead_code) ] // these are just bindings
1516
1617use libc;
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ mod imp {
199199 SwitchToThread ( ) ;
200200 }
201201
202+ #[ allow( non_snake_case_functions) ]
202203 extern "system" {
203204 fn CreateThread ( lpThreadAttributes : LPSECURITY_ATTRIBUTES ,
204205 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
22// file at the top-level directory of this distribution and at
33// http://rust-lang.org/COPYRIGHT.
44//
@@ -86,6 +86,7 @@ pub unsafe fn destroy(key: Key) {
8686}
8787
8888#[ cfg( windows) ]
89+ #[ allow( non_snake_case_functions) ]
8990extern "system" {
9091 fn TlsAlloc ( ) -> DWORD ;
9192 fn TlsFree ( dwTlsIndex : DWORD ) -> BOOL ;
You can’t perform that action at this time.
0 commit comments