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

Move $d_namlen to the end of $dirent #264

Merged
merged 1 commit into from
May 18, 2020

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
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