Module libc/limits

libc/limits
Stability: unstable — a raw C binding, not a Yo design, and currently unused: nothing in the tree imports it. Yo's integer limits are associated constants on the fixed-width types themselves (`i32.MAX`, `u64.MAX`, …, defined in `std/prelude.yo`), and they are exact by construction rather than dependent on the C compiler, so the prelude is the supported surface. The C names are bound anyway because they are what a transcribed header says, and because `CHAR_BIT`, `MB_LEN_MAX` and the signedness of plain `char` genuinely are implementation-defined and have no Yo counterpart. — stable modules only change additively; this one may still change.

C11 <limits.h> — implementation-defined limits for integer types.

Stability

unstable — a raw C binding, not a Yo design, and currently unused: nothing in the tree imports it. Yo's integer limits are associated constants on the fixed-width types themselves (i32.MAX, u64.MAX, …, defined in std/prelude.yo), and they are exact by construction rather than dependent on the C compiler, so the prelude is the supported surface. The C names are bound anyway because they are what a transcribed header says, and because CHAR_BIT, MB_LEN_MAX and the signedness of plain char genuinely are implementation-defined and have no Yo counterpart.

Constants

CHAR_BIT constant int

Value: <unknown: int>

SCHAR_MIN constant char

Value: <unknown: char>

SCHAR_MAX constant char

Value: <unknown: char>

UCHAR_MAX constant char

Value: <unknown: char>

CHAR_MIN constant char

Value: <unknown: char>

CHAR_MAX constant char

Value: <unknown: char>

MB_LEN_MAX constant int

Value: <unknown: int>

SHRT_MIN constant short

Value: <unknown: short>

SHRT_MAX constant short

Value: <unknown: short>

USHRT_MAX constant ushort

Value: <unknown: ushort>

INT_MIN constant int

Value: <unknown: int>

INT_MAX constant int

Value: <unknown: int>

UINT_MAX constant uint

Value: <unknown: uint>

LONG_MIN constant long

Value: <unknown: long>

LONG_MAX constant long

Value: <unknown: long>

ULONG_MAX constant ulong

Value: <unknown: ulong>

LLONG_MIN constant longlong

Value: <unknown: longlong>

LLONG_MAX constant longlong

Value: <unknown: longlong>

ULLONG_MAX constant ulonglong

Value: <unknown: ulonglong>