]> git.lizzy.rs Git - rust.git/commitdiff
windows: Allow snake_case errors for now.
authorKevin Butler <haqkrs@gmail.com>
Fri, 30 May 2014 16:07:16 +0000 (17:07 +0100)
committerKevin Butler <haqkrs@gmail.com>
Fri, 30 May 2014 16:59:41 +0000 (17:59 +0100)
15 files changed:
src/doc/guide-ffi.md
src/liblibc/lib.rs
src/libnative/io/mod.rs
src/librustdoc/flock.rs
src/libstd/os.rs
src/libstd/rand/os.rs
src/libstd/rt/backtrace.rs
src/libstd/rt/libunwind.rs
src/libstd/rt/thread.rs
src/libstd/rt/thread_local_storage.rs
src/libstd/unstable/dynamic_lib.rs
src/libstd/unstable/mutex.rs
src/libterm/win.rs
src/test/bench/shootout-spectralnorm.rs
src/test/bench/sudoku.rs

index 81616c675dee9b9b872971e8a2c933b7fa7fbd99..ad80f2b46c8e083b25e10cd20df022a8acd87351 100644 (file)
@@ -476,6 +476,7 @@ extern crate libc;
 
 #[cfg(target_os = "win32", target_arch = "x86")]
 #[link(name = "kernel32")]
+#[allow(non_snake_case_functions)]
 extern "stdcall" {
     fn SetEnvironmentVariableA(n: *u8, v: *u8) -> libc::c_int;
 }
index 7b6a9122d90a2b09b6fe8af19c68334d461c4469..3a9f8bc863b15dea7765e3a3aeb59fb28da486fa 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -71,6 +71,7 @@
 */
 
 #![allow(non_camel_case_types)]
+#![allow(non_snake_case_functions)]
 #![allow(non_uppercase_statics)]
 #![allow(missing_doc)]
 #![allow(uppercase_variables)]
index 0c103bc4695fd7bbb1146e69b1f5bac49c2bb761..240b87fda084d13e39110543d842ac9d9cfdf313 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -21,6 +21,8 @@
 //! play. The only dependencies of these modules are the normal system libraries
 //! that you would find on the respective platform.
 
+#![allow(non_snake_case_functions)]
+
 use libc::c_int;
 use libc;
 use std::c_str::CString;
index f24bd661c8c178c9bfd6806542d66695c32c8374..fea6748660bde2c0e2df962032226a7503a7b6e2 100644 (file)
@@ -141,6 +141,7 @@ mod imp {
 
     static LOCKFILE_EXCLUSIVE_LOCK: libc::DWORD = 0x00000002;
 
+    #[allow(non_snake_case_functions)]
     extern "system" {
         fn LockFileEx(hFile: libc::HANDLE,
                       dwFlags: libc::DWORD,
index f6b9a7b24bc9338f7328bad8a0b5891fcdc0427e..7e6d3c0606f9a40b31b6059cf3adb047f755cbe2 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -27,6 +27,7 @@
  */
 
 #![allow(missing_doc)]
+#![allow(non_snake_case_functions)]
 
 use clone::Clone;
 use container::Container;
index 3a6c0124ee09d0d7ffe9081d7f51f2b1a551d81b..284d41d3208a382ed72974cda74b4adef7538744 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -93,6 +93,7 @@ pub struct OsRng {
     static CRYPT_VERIFYCONTEXT: DWORD = 0xF0000000;
     static NTE_BAD_SIGNATURE: DWORD = 0x80090006;
 
+    #[allow(non_snake_case_functions)]
     extern "system" {
         fn CryptAcquireContextA(phProv: *mut HCRYPTPROV,
                                 pszContainer: LPCSTR,
index f4cb770544c46f96579d804755647d5f4e4d9cee..ac421bf78be7edaf277e945524527f1753487ac2 100644 (file)
@@ -518,6 +518,7 @@ mod imp {
     use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
     use slice::ImmutableVector;
 
+    #[allow(non_snake_case_functions)]
     extern "system" {
         fn GetCurrentProcess() -> libc::HANDLE;
         fn GetCurrentThread() -> libc::HANDLE;
index 4fd610d7423602141e35cbc305111c1afc7c2380..00301e71b0d8ba98f0ade45ae0dddba3c344cf02 100644 (file)
@@ -11,6 +11,7 @@
 //! Unwind library interface
 
 #![allow(non_camel_case_types)]
+#![allow(non_snake_case_functions)]
 #![allow(dead_code)] // these are just bindings
 
 use libc;
index 6cc9604dc59a5deef5137ee3549916739431d63b..81dcf909706dd3263e7e68c77284fd58c553ad30 100644 (file)
@@ -199,6 +199,7 @@ pub unsafe fn yield_now() {
         SwitchToThread();
     }
 
+    #[allow(non_snake_case_functions)]
     extern "system" {
         fn CreateThread(lpThreadAttributes: LPSECURITY_ATTRIBUTES,
                         dwStackSize: SIZE_T,
index 2551c89972e59e0fb21cfcdec8ed24e17c173b51..a3ebcbafff8d32ffa9726173553c1dd6f9cda9e7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -86,6 +86,7 @@ pub unsafe fn destroy(key: Key) {
 }
 
 #[cfg(windows)]
+#[allow(non_snake_case_functions)]
 extern "system" {
     fn TlsAlloc() -> DWORD;
     fn TlsFree(dwTlsIndex: DWORD) -> BOOL;
index 81eb51107ba065deb23cad2ded43e58ec9f57fab..6c406a7c8472e4e432164487cb4c3b4f7345c694 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -317,6 +317,7 @@ pub unsafe fn close(handle: *u8) {
         FreeLibrary(handle as *libc::c_void); ()
     }
 
+    #[allow(non_snake_case_functions)]
     extern "system" {
         fn SetLastError(error: libc::size_t);
         fn LoadLibraryW(name: *libc::c_void) -> *libc::c_void;
index 04da7dab6c658f8a0fb4ddc5187411fa0dc0702c..4e51e71477757be5665f5ef7633850612e01b585 100644 (file)
@@ -543,6 +543,7 @@ pub unsafe fn free_cond(h: uint) {
         libc::CloseHandle(block);
     }
 
+    #[allow(non_snake_case_functions)]
     extern "system" {
         fn CreateEventA(lpSecurityAttributes: LPSECURITY_ATTRIBUTES,
                         bManualReset: BOOL,
index 837ddf566ef45aabbc2b527f5a0daece7e5060ff..00e90fc3cde64abc3e072d66fcfa546ec15cb42f 100644 (file)
@@ -27,6 +27,7 @@ pub struct WinConsole<T> {
     background: color::Color,
 }
 
+#[allow(non_snake_case_functions)]
 #[link(name = "kernel32")]
 extern "system" {
     fn SetConsoleTextAttribute(handle: libc::HANDLE, attr: libc::WORD) -> libc::BOOL;
index c6a678828c15beea961f0b354227b3a693e5b94f..c038a056569b9918f5108b1dd9a2272092cbb536 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 #![feature(phase)]
+#![allow(non_snake_case_functions)]
 #[phase(syntax)] extern crate green;
 extern crate sync;
 
index 9235882d1f4980b7d06656f4a5b659e6c8eaebc5..c0ea6f8617d87ecadd3a60b9f98c7b52aae01656 100644 (file)
@@ -11,6 +11,7 @@
 // ignore-pretty very bad with line comments
 
 #![feature(managed_boxes)]
+#![allow(non_snake_case_functions)]
 
 use std::io;
 use std::io::stdio::StdReader;