* witx tagged unions: updates to wig to use new semantics * wig: emit a `#variant: ()` union variant for empty variants * wasi-common: translate to use tagged unions * update to flattened layout of event struct * wig: generate layout tests, and delete bindgen ones the bindgen tests became out-of-date with the latest changes to the representation of unions, and the re-jiggering of various struct definitions that went along with it. * wasi: point at master with tagged union PR merged * fix event struct repr on windows
16 lines
416 B
Rust
16 lines
416 B
Rust
//! Types and constants specific to 32-bit wasi. These are similar to the types
|
|
//! in the `host` module, but pointers and `usize` values are replaced with
|
|
//! `u32`-sized types.
|
|
|
|
#![allow(non_camel_case_types)]
|
|
#![allow(non_snake_case)]
|
|
#![allow(dead_code)]
|
|
|
|
use crate::wasi::*;
|
|
use wig::witx_wasi32_types;
|
|
|
|
pub type uintptr_t = u32;
|
|
pub type size_t = u32;
|
|
|
|
witx_wasi32_types!("snapshot" "wasi_snapshot_preview1");
|