A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Fix some minor C API mistakes (#13149)
Alex Crichtone3c18edac35a
diff --git a/crates/c-api/include/wasmtime/val.h b/crates/c-api/include/wasmtime/val.hindex 1083e540fd..2b5f3c32fe 100644--- a/crates/c-api/include/wasmtime/val.h+++ b/crates/c-api/include/wasmtime/val.h@@ -16,7 +16,6 @@ extern "C" {#endif#ifdef WASMTIME_FEATURE_GC-struct wasmtime_eqref;/// Convenience alias for #wasmtime_eqreftypedef struct wasmtime_eqref wasmtime_eqref_t;@@ -82,19 +81,6 @@ static inline bool wasmtime_anyref_is_null(const wasmtime_anyref_t *ref) {WASM_API_EXTERN void wasmtime_anyref_clone(const wasmtime_anyref_t *anyref,wasmtime_anyref_t *out);-/**- * \brief Downcast an `anyref` to an `eqyref`.- *- * Returns `true` if the downcast succeeded, and `out` is initialized. Returns- * `false` if the downcast failed, and `out` is left uninitialized.- *- * The original `anyref` is not consumed; `out` receives a new cloned root- * pointing to the same GC object as `anyref`.- */-WASM_API_EXTERN bool wasmtime_anyref_to_eqref(wasmtime_context_t *context,- const wasmtime_anyref_t *anyref,- wasmtime_eqref_t *out);-/*** \brief Unroots the `ref` provided within the `context`.*diff --git a/crates/c-api/src/vec.rs b/crates/c-api/src/vec.rsindex bf6303bc5d..24c827de47 100644--- a/crates/c-api/src/vec.rs+++ b/crates/c-api/src/vec.rs@@ -1,7 +1,7 @@use crate::{wasm_exporttype_t, wasm_extern_t, wasm_externtype_t, wasm_frame_t, wasm_functype_t,- wasm_globaltype_t, wasm_importtype_t, wasm_memorytype_t, wasm_tabletype_t, wasm_val_t,- wasm_valtype_t,+ wasm_globaltype_t, wasm_importtype_t, wasm_memorytype_t, wasm_tabletype_t, wasm_tagtype_t,+ wasm_val_t, wasm_valtype_t,};use std::mem;use std::mem::MaybeUninit;@@ -260,4 +260,13 @@ declare_vecs! {copy: wasm_extern_vec_copy,delete: wasm_extern_vec_delete,)+ (+ name: wasm_tagtype_vec_t,+ ty: Option<Box<wasm_tagtype_t>>,+ new: wasm_tagtype_vec_new,+ empty: wasm_tagtype_vec_new_empty,+ uninit: wasm_tagtype_vec_new_uninitialized,+ copy: wasm_tagtype_vec_copy,+ delete: wasm_tagtype_vec_delete,+ )}