[libc-commits] [libc] [libc][annex_k] Add rsize_t. (PR #163238)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Wed Mar 18 15:04:58 PDT 2026
bassiounix wrote:
> C23 K.3.3 states that `rsize_t` is the type `size_t`. Hence, I believe it's better to `typedef size_t rsize_t`.
>
> For that I reckon you should make rsize_t.h depend on and include size_t.h
Both `size_t` and `rsize_t` are both the same, and `size_t` is defined as `__SIZE_TYPE__`, so there's no difference in making it qualify to `size_t` or `__SIZE_TYPE__` as both eventually will be `__SIZE_TYPE__`.
That's my rational anyway.
https://github.com/llvm/llvm-project/pull/163238
More information about the libc-commits
mailing list