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

Size t dtoh #10862

Merged
merged 3 commits into from
Mar 4, 2020
Merged

Size t dtoh #10862

merged 3 commits into from
Mar 4, 2020

Conversation

UplinkCoder
Copy link
Member

@UplinkCoder UplinkCoder commented Mar 4, 2020

should treat size_t as a special alias and emit it

@UplinkCoder UplinkCoder requested a review from RazvanN7 as a code owner March 4, 2020 08:58
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @UplinkCoder!

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.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#10862"

@thewilsonator
Copy link
Contributor

This needs a test.

@UplinkCoder
Copy link
Member Author

UplinkCoder commented Mar 4, 2020 via email

@UplinkCoder
Copy link
Member Author

@thewilsonator done!

@dlang-bot dlang-bot merged commit 48620fb into dlang:master Mar 4, 2020
@@ -726,8 +729,17 @@ public:
visit(cast(AST.Dsymbol)ad);
return;
}

// for function pointers we need to original type
Copy link
Member

Choose a reason for hiding this comment

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

Sentence seems (incomplete), or missing a bit (in the) middle.

@@ -1667,7 +1682,12 @@ public:
if (i)
buf.writestring(", ");
auto fparam = AST.Parameter.getNth(tf.parameterList.parameters, i);
if (fparam.type == AST.Type.tsize_t && originalType)
Copy link
Member

Choose a reason for hiding this comment

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

I suspect this comparison to size_t will need to be turned into a function.

@UplinkCoder UplinkCoder mentioned this pull request Mar 31, 2020
@ibuclaw ibuclaw added the Feature:dtoh C++ header generation label Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants