D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22594 - Update "Interfacing to C" to include intptr_t and uintptr_t
Summary: Update "Interfacing to C" to include intptr_t and uintptr_t
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: x86_64 Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2021-12-13 19:44 UTC by Lance Bachmeier
Modified: 2023-02-03 10:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Lance Bachmeier 2021-12-13 19:44:12 UTC
intptr_t and uintptr_t are defined in C99 and appear in some C code (Scintilla being one prominent example). The "Data Type Compatibility" table on this page

https://dlang.org/spec/interfaceToC.html#data_type_compat

should include those types. They are defined in core.stdc.stdint. They might not be common, but in the current form, that page leaves the impression that they're not even available.
Comment 1 Dlang Bot 2023-02-01 15:53:41 UTC
@ioanavivi12 created dlang/dlang.org pull request #3509 "Fix Issue 22594 " fixing this issue:

- Fix 22594
  
  Add an extra row to include intptr_t and uintptr_t data types.

https://github.com/dlang/dlang.org/pull/3509
Comment 2 Dlang Bot 2023-02-03 10:25:48 UTC
@ioanavivi12 created dlang/dlang.org pull request #3519 "Fix Issue 22594 - Update Interfacing to C to include intptr_t and uin…" fixing this issue:

- Fix Issue 22594 - Update Interfacing to C to include intptr_t and uintptr_t

https://github.com/dlang/dlang.org/pull/3519
Comment 3 Dlang Bot 2023-02-03 10:38:31 UTC
dlang/dlang.org pull request #3519 "Fix Issue 22594 - Update Interfacing to C to include intptr_t and uin…" was merged into master:

- b97d88afe556ab6044f81ebb2ae96e4a33c579e9 by ioanavivi12:
  Fix Issue 22594 - Update Interfacing to C to include intptr_t and uintptr_t

https://github.com/dlang/dlang.org/pull/3519