Skip to content
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

rename: get_func_by_name to get_func #252

Merged
merged 1 commit into from
Oct 23, 2023
Merged

rename: get_func_by_name to get_func #252

merged 1 commit into from
Oct 23, 2023

Conversation

guybedford
Copy link
Collaborator

This renames the new (imports|exports).get_func_by_name to just (imports|exports).get_func. The main reason being that I think the by_name term is overloaded in the functions list already to mean the actual function name instead of the import or export name, so wanted to avoid any confusion here.

Then I updated the delete_by_name functions to be generic named remove functions also without the by_name term to avoid confusion about it.

@guybedford
Copy link
Collaborator Author

/cc @vados-cosmonic

@vados-cosmonic
Copy link
Contributor

Looks good to me -- thanks for the pointer, updating the WASI-Virt PR now!

@guybedford guybedford merged commit db5d437 into main Oct 23, 2023
16 checks passed
@guybedford guybedford deleted the get-func branch October 23, 2023 19:18
vados-cosmonic added a commit to vados-cosmonic/WASI-Virt that referenced this pull request Oct 23, 2023
After the work done upstreaming operations used in `src/walrus_ops.rs`
to walrus, the code for WASI-Virt can be updated to use the new APIs
and reduce custom code.

This commit updates the WASI-Virt codebase to use the upstreamed
functions and adds some light refactors to the more mechanical pieces
of code for stubbing/denying/stripping.

see: bytecodealliance#20
see: rustwasm/walrus#252

Signed-off-by: Victor Adossi <[email protected]>
guybedford pushed a commit to bytecodealliance/WASI-Virt that referenced this pull request Oct 23, 2023
After the work done upstreaming operations used in `src/walrus_ops.rs`
to walrus, the code for WASI-Virt can be updated to use the new APIs
and reduce custom code.

This commit updates the WASI-Virt codebase to use the upstreamed
functions and adds some light refactors to the more mechanical pieces
of code for stubbing/denying/stripping.

see: #20
see: rustwasm/walrus#252

Signed-off-by: Victor Adossi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants