Commit Graph

13 Commits

Author SHA1 Message Date
Nick Lewycky
d589d83d09 Don't #include inside extern "C" blocks.
Also free the malloc'd error string in print_wasmer_error().

Run the C code through clang-format.
2021-02-10 18:00:58 -08:00
Ivan Enderlin
453ece6415 fix(c-api) Call wasi_env_delete manually.
`wasi_get_imports` isn't taking ownership of `wasi_env_t` (despites
what is written in the documentation). And it must not take ownership
of it, since one could use it with the `wasi_env_read_stdout` &
sibling functions after having called `wasi_get_imports`.

Consequently, this patch calls `wasi_env_delete` to avoid leaking
memory.
2021-02-02 14:29:10 +01:00
Mark McCaskey
924ffd8797 Prepare for 1.0.1 release 2021-01-12 08:08:19 -08:00
Mark McCaskey
bc73789cc0 Prepare for 1.0.0 release 2021-01-05 06:21:03 -08:00
Mark McCaskey
1ac42e2e3b Update usage of beta to rc 2020-12-23 11:33:53 -08:00
Mark McCaskey
e928a832a8 Update mentions of alpha to beta 2020-12-02 11:01:54 -08:00
Syrus
bb1b89f4f7 Removed all usages of wasm_instance_get_vmctx_ptr 2020-10-16 21:39:23 -07:00
Mark McCaskey
52d1f86f47 Add no-op keyed helper function for object file engine generated C 2020-10-06 17:31:26 -07:00
Mark McCaskey
7fdcdaa61c Add more changes from feedback; simplify C code with helper functions 2020-10-06 17:02:54 -07:00
Mark McCaskey
aa2e8f7b4d Address more feedback, clean up code 2020-10-06 12:13:59 -07:00
Mark McCaskey
5ac0f89d92 Add small clean up 2020-09-30 17:10:05 -07:00
Mark McCaskey
dbfbfe084a Misc clean ups from feedback 2020-09-29 11:05:11 -07:00
Mark McCaskey
fdfdeeb94a Improve some of the UX of the compile command, add docs 2020-09-01 14:26:29 -07:00