wasi-libc/tools/wasi-headers/src
Alex Crichton 2b7e73ae7a
Update to the next version of the witx crate (#234)
* Update to the next version of the `witx` crate

* Generate adapter functions instead of simply a header file to have a
  place where adapter code can go.
* Implement adapters in terms of the instructions that the `witx` crate
  tells us about.
* Update the interface of functions to what `witx` expects, notably
  string arguments are now only taken as `char*` and `strlen` happens in
  the adapter function.
* Update defined/predefined/undefined symbol lists for types that have
  been updated.

Some precise generated code has changed but the actual APIs should all
be the same except for the change to not take the length of the string
in the raw WASI call, since idiomatically C doesn't pass the length of
strings around.

Eventually it's expected that the shim functions, while sometimes not
necessary today, will implement more checks and more conversions as
necessary for new APIs.

* Actually update witx submodule

* Comment how to regenerate files

* Tweak name of actual function imports

Make it a bit clearer that they're the ones that we're importing and
calling.

* Update submodule to point to WebAssembly
2021-02-23 12:18:56 -06:00
..
c_header.rs Update to the next version of the witx crate (#234) 2021-02-23 12:18:56 -06:00
lib.rs Update to the next version of the witx crate (#234) 2021-02-23 12:18:56 -06:00
main.rs Update to the next version of the witx crate (#234) 2021-02-23 12:18:56 -06:00