One CamelCase style cleanup and allow dead code warning

This commit is contained in:
Brandon Fish 2019-08-02 14:14:59 -06:00
parent e2e096117a
commit b358605791
2 changed files with 4 additions and 3 deletions

View File

@ -30,6 +30,7 @@ pub fn call_malloc(ctx: &mut Ctx, size: u32) -> u32 {
.unwrap()
}
#[warn(dead_code)]
pub fn call_malloc_with_cast<T: Copy, Ty>(ctx: &mut Ctx, size: u32) -> WasmPtr<T, Ty> {
WasmPtr::new(call_malloc(ctx, size))
}

View File

@ -30,11 +30,11 @@ use wasmer_runtime_core::{
};
#[cfg(unix)]
use ::libc::DIR as libcDIR;
use ::libc::DIR as LibcDir;
// We use a placeholder for windows
#[cfg(not(unix))]
type libcDIR = u8;
type LibcDir = u8;
#[macro_use]
mod macros;
@ -98,7 +98,7 @@ pub struct EmscriptenData<'a> {
pub memset: Option<Func<'a, (u32, u32, u32), u32>>,
pub stack_alloc: Option<Func<'a, u32, u32>>,
pub jumps: Vec<UnsafeCell<[u32; 27]>>,
pub opened_dirs: HashMap<i32, Box<*mut libcDIR>>,
pub opened_dirs: HashMap<i32, Box<*mut LibcDir>>,
pub dyn_call_i: Option<Func<'a, i32, i32>>,
pub dyn_call_ii: Option<Func<'a, (i32, i32), i32>>,