chore(c-api) Move cbindgen:ignore from functions/types to modules.

This patch removes the amount of `cbindgen:ignore` instructions by
moving this instruction onto the parent module.
This commit is contained in:
Ivan Enderlin
2020-10-02 09:51:48 +02:00
parent 1a45756cad
commit ae1a50b5d7
24 changed files with 18 additions and 163 deletions

View File

@@ -3,11 +3,9 @@ use std::convert::{TryFrom, TryInto};
use std::ptr::NonNull;
use wasmer::Val;
/// cbindgen:ignore
#[allow(non_camel_case_types)]
pub type wasm_valkind_t = u8;
/// cbindgen:ignore
#[allow(non_camel_case_types)]
#[derive(Clone, Copy)]
pub union wasm_val_inner {
@@ -18,7 +16,6 @@ pub union wasm_val_inner {
pub(crate) wref: *mut wasm_ref_t,
}
/// cbindgen:ignore
#[allow(non_camel_case_types)]
#[repr(C)]
pub struct wasm_val_t {
@@ -35,7 +32,6 @@ impl Clone for wasm_val_t {
}
}
/// cbindgen:ignore
#[no_mangle]
pub unsafe extern "C" fn wasm_val_copy(out_ptr: *mut wasm_val_t, val: &wasm_val_t) {
(*out_ptr).kind = val.kind;
@@ -51,7 +47,6 @@ pub unsafe extern "C" fn wasm_val_copy(out_ptr: *mut wasm_val_t, val: &wasm_val_
};
}
/// cbindgen:ignore
#[no_mangle]
pub unsafe extern "C" fn wasm_val_delete(val: Option<NonNull<wasm_val_t>>) {
if let Some(v_inner) = val {