Closed iacore closed 5 months ago
ssize_t
is not in the C standard. I've not seen it in C codebase before.
That sounds similar to the following from the mailing list post:
- ptrdiff_t is more ubiquitous and better-standardized than ssize_t, as ptrdiff_t is required by the C standard whereas ssize_t is required only by POSIX.
I wonder if it doesn't make sense for ffi.c
to use :ptrdiff
instead of :ssize
then...
@tr{@td{@code`:ptrdiff`} @td{ptrdiff_t}}
I wonder if it doesn't make sense for
ffi.c
to use:ptrdiff
instead of:ssize
then...@tr{@td{@code`:ptrdiff`} @td{ptrdiff_t}}
We can support both :ptrdiff
and :ssize
(backwards compatible).
Ah, there's an idea :)
Question: why is float r32
not f32
?
Also, maybe the better name is usize
and ssize
. Rust and LLVM uses isize
.
I don't understand the details very well, but I'm curious why
ptrdiff_t
and notssize_t
.Something in here, perhaps?