Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

Comments

Add musl libc definitions to core/stdc/*#2066

Merged
dlang-bot merged 1 commit intodlang:masterfrom
yshui:musl_core_stdc
Jan 30, 2018
Merged

Add musl libc definitions to core/stdc/*#2066
dlang-bot merged 1 commit intodlang:masterfrom
yshui:musl_core_stdc

Conversation

@yshui
Copy link
Contributor

@yshui yshui commented Jan 28, 2018

This is splitted from #1997.

I think I addressed all the comments. Thanks to all the reviewers.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @yshui! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.

Some tips to help speed things up:

  • smaller, focused PRs are easier to review than big ones

  • try not to mix up refactoring or style changes with bug fixes or feature enhancements

  • provide helpful commit messages explaining the rationale behind each change

Bear in mind that large or tricky changes may require multiple rounds of review and revision.

Please see CONTRIBUTING.md for more information.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Copy link
Member

@ibuclaw ibuclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Last nits and we're there.

else version( CRuntime_Musl )
{
version (X86_64) {
struct fenv_t {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, can we have curly braces on new lines?

? __fpclassify(x)
: __fpclassifyl(x);
}
static uint __FLOAT_BITS(float __f)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static isn't doing anything here. Should this instead be private?

__u.__f = __f;
return __u.__i;
}
static ulong __DOUBLE_BITS(double __f)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise private.

}
else version( CRuntime_Musl )
{
union fpos_t {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curly on next line.

extern shared FILE* stdout;
///
extern shared FILE* stderr;
enum {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curly on next line.

enum {
_IOFBF = 0,
_IOLBF = 1,
_IONBF = 2,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add /// comment for each member.

@yshui
Copy link
Contributor Author

yshui commented Jan 29, 2018

Done

Copy link
Member

@ibuclaw ibuclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Contributor

@joakim-noah joakim-noah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked for scoping, looks good. @ZombineDev, if you approve, should be merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants