hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 0e3ebf97e0e6d9211392af96aec95dbe48628607
parent 8b5ae05610740739f6412b9458ac21854add6d0d
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun,  1 Dec 2024 19:50:28 -0500

types::c: add sig_atomic

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mtypes/c/types.ha | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/types/c/types.ha b/types/c/types.ha @@ -237,6 +237,16 @@ export def UINT_FAST64_MIN: uint_fast64 = types::U64_MIN; // Maximum value which can be stored in a [[uint_fast64]] type. export def UINT_FAST64_MAX: uint_fast64 = types::U64_MAX; +// Integer type compatible with 'sig_atomic_t', as defined in <signal.h> and +// specified by ISO/IEC 9899:1999. +export type sig_atomic = int; + +// Minimum value which can be stored in a [[sig_atomic]] type. +export def SIG_ATOMIC_MIN: sig_atomic = types::INT_MIN; + +// Maximum value which can be stored in a [[sig_atomic]] type. +export def SIG_ATOMIC_MAX: sig_atomic = types::INT_MAX; + // Integer type compatible with `wchar_t`, as defined in <stddef.h> and // specified by ISO/IEC 9899. export type wchar = i32;