-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(c-api) Update wasm-c-api
repository
#1699
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
1872970
feat(c-api) Update `wasm-c-api` repository.
Hywan 8b38dd5
feat(c-api) Implement `wasm_val_vec_t`.
Hywan d8dcb41
feat(c-api) Update the definitions of `wasm_func_callback*_t`.
Hywan 5dffd97
feat(c-api) Update `wasm_func_new`.
Hywan 7f09838
faet(c-api) Update `wasm_func_new_with_env`.
Hywan e9cd710
feat(c-api) Update `wasm_func_call`.
Hywan fa7fe83
feat(c-api) Update `wasm_instance_new`.
Hywan fea156d
feat(c-api) Update `wasi_get_imports` to use a `wasm_extern_vec_t`…
Hywan 202ffe7
fix(c-api) Fix `wasm_func_call` when params are empty.
Hywan 35f8e17
Merge branch 'master' into feat-c-api-update-wasm-h
Hywan 4584a53
fix(c-api) Remove `rustc` warnings.
Hywan 5bf9055
test(c-api) Fix the `early-exit` test.
Hywan 4186d1c
test(c-api) Use `wasm_extern_vec_t` for `wasm_get_imports`.
Hywan 0b4ef7a
test(c-api) Don't pass `NULL` for zero args/results to `wasm_func_call`!
Hywan 437426d
feat(c-api) Update `wasmer_wasm.h`.
Hywan 122ba83
Merge branch 'master' into feat-c-api-update-wasm-h
Hywan 2023016
doc(changelog) Add #1699.
Hywan bf389f9
Merge branch 'master' into feat-c-api-update-wasm-h
Hywan 4463294
doc(changelog) Add #1685.
Hywan e29ea25
feat(c-api) Simplify code with `unwrap_or_default`.
Hywan d7d40e5
Merge branch 'master' into feat-c-api-update-wasm-h
Hywan ddf2459
chore(changelog) Fix merge.
Hywan 4f9932c
feat(cli) Update the `crate_exe_main.c` file to the latest Wasm C API.
Hywan 5601ecb
test(integration) Add `-x c` to force `clang++` to treat code as C.
Hywan cb5afa1
test(integration) Update to use the latest Wasm C API.
Hywan 2fc1aaa
chore(test) Format code.
Hywan 3b05c26
fix(c-api) Fix last edit of the `wasmer_create_exe_main.c` file.
Hywan 1cdb5b5
fix(c-api) Fix another typo. Damn.
Hywan 9955da1
test: Remove a warning fix for Windows.
Hywan a73e457
Merge branch 'master' into feat-c-api-update-wasm-h
Hywan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not be the same, we should be careful of the difference between fat pointers and thin pointers.
as_ptr
andas_mut_ptr
generally pass word sized pointers, references to slices are double words and references to vecs are different data entirelyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
processed_args
andresults
are now of kindwasm_val_vec_t
. I believe it is safe to use&
in this case.