Skip to content

Conversation

@caspervonb
Copy link
Contributor

@caspervonb caspervonb commented Apr 27, 2020

Just a minor (although ABI breaking) nit suggestion that stuck out to me when implementing fd_readdir.

Currently $dirent has the filetype in-between the name length and the name data so you end up scanning the length of entry's name, writing the type of the entry then going back to write out the name data.

@sunfishcode
Copy link
Member

I agree it is nicer to keep the name length next to the name data. Would you mind also updating phases/ephemeral/docs.md, either by hand or by running cd tools/witx && cargo run --example witx repo-docs? Thanks!

@caspervonb
Copy link
Contributor Author

Done and force pushed 2f64d16

@sunfishcode
Copy link
Member

My apologies, but the patch to land Size and Alignment documentation landed before this, so there's now a merge conflict. Would you mind resolving this? Thanks!

@caspervonb
Copy link
Contributor Author

Rebased against current master and ran the doc tool again.

@sunfishcode
Copy link
Member

Thanks!

@sunfishcode sunfishcode merged commit 8125353 into WebAssembly:master May 18, 2020
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
yoshuawuyts pushed a commit to yoshuawuyts/WASI that referenced this pull request Nov 25, 2025
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