-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Fixed Issue 22594 - Update "Interfacing to C" to include intptr_t and uintptr_t #3509
Conversation
|
Thanks for your pull request and interest in making D better, @ioanavivi12! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
|
spec/interfaceToC.dd
Outdated
| @@ -152,6 +152,7 @@ $(H2 $(LNAME2 data_type_compat, Data Type Compatibility)) | |||
|
|
|||
| $(TROW3 core.stdc.config.c_long, long, long) | |||
| $(TROW3 core.stdc.config.c_ulong, unsigned long, unsigned long) | |||
| $(TROW3 core.stdc.stdint, intptr_t, uintptr_t) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The columns are for 32 and 64 bit so this isn't right I think.
Should be two rows, one for signed and unsigned (it's the same type for each column)
Also core.stdc.stdint.intptr_t rather than core.stdc.stdint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it now. I hope it is ok.
spec/interfaceToC.dd
Outdated
| @@ -152,6 +152,7 @@ $(H2 $(LNAME2 data_type_compat, Data Type Compatibility)) | |||
|
|
|||
| $(TROW3 core.stdc.config.c_long, long, long) | |||
| $(TROW3 core.stdc.config.c_ulong, unsigned long, unsigned long) | |||
| $(TROW2 core.stdc.stdint.intptr_t, intptr_t, $(D uintptr_t)) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are putting both on the same row, but what is actually needed is:
$(TROW3 core.stdc.stdint.intptr_t, intptr_t, intptr_t)
$(TROW3 core.stdc.stdint.uintptr_t, uintptr_t, uintptr_t)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you still need to delete this row.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it, thank you. I hope it is ok now.
spec/interfaceToC.dd
Outdated
|
|
||
| $(TROW3PLUS long, long long, long, (or $(D long long))) | ||
| $(TROW3PLUS ulong, unsigned long long, unsigned long, (or $(D unsigned long long))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this deleted?
spec/interfaceToC.dd
Outdated
| @@ -412,3 +414,4 @@ Macros: | |||
| TROW3PLUS=$(TR3 $(TD $(D $1)), $(TD $(D $2)), $(TD $(D $3) $4)) | |||
| TD2=$(MULTICOL_CELL 2, $0) | |||
| TITLE=Interfacing to C | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is unrelated to this PR.
|
Please squash commits. |
|
Please include the issue name as part of the commit title and PR title. |
I added an extra row to include intptr_t and uintptr_t data types.