Skip to content

Expose c_int as core::ffi::c_int? #3012

@thomcc

Description

@thomcc

This is already part of the target specification, and you can observe the size of c_int in no_std programs by examining the size of a #[repr(C)] enum.

If we're worried about future platforms with a Rust compiler and no C compiler, on such a platform it would just be a signed integer the same size as a #[repr(C)] enum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions