Skip to content

C integer types as aliases of zig integers #3757

Closed
@daurnimator

Description

@daurnimator

Currently c_ushort != u16.

15:14:52 | andrewrk | because the C integer types have different bit widths based on targets
15:15:15 | andrewrk | it matters for the C ABI

Instead, I propose that e.g. c_ushort just becomes an alias for the relevant u16/u32/etc.

As @andrewrk notes, this could happen in the standard library itself

15:20:11 | andrewrk | which would be renamed to std.c.int

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions