hare

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

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

rt: make sigact function pointer fields nullable

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

Diffstat:
Mrt/+freebsd/types.ha | 4++--
Mrt/+linux/types.ha | 6+++---
Mrt/+netbsd/types.ha | 4++--
Mrt/+openbsd/types.ha | 4++--
4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/rt/+freebsd/types.ha b/rt/+freebsd/types.ha @@ -41,8 +41,8 @@ export def SIG_HOLD: uintptr = 3; export type sigact = struct { union { - sa_handler: *fn (int) void, - sa_sigaction: *fn (int, *siginfo, *opaque) void, + sa_handler: nullable *fn (int) void, + sa_sigaction: nullable *fn (int, *siginfo, *opaque) void, }, sa_flags: int, sa_mask: sigset, diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha @@ -507,11 +507,11 @@ export def SIG_HOLD: uintptr = 2; export type sigact = struct { union { - sa_handler: *fn (int) void, - sa_sigaction: *fn (int, *siginfo, *opaque) void, + sa_handler: nullable *fn (int) void, + sa_sigaction: nullable *fn (int, *siginfo, *opaque) void, }, sa_flags: u64, - sa_restorer: *fn () void, + sa_restorer: nullable *fn () void, sa_mask: sigset, }; diff --git a/rt/+netbsd/types.ha b/rt/+netbsd/types.ha @@ -49,8 +49,8 @@ export def SIG_HOLD: uintptr = 3; export type sigact = struct { union { - sa_handler: *fn (int) void, - sa_sigaction: *fn (int, *siginfo, *opaque) void, + sa_handler: nullable *fn (int) void, + sa_sigaction: nullable *fn (int, *siginfo, *opaque) void, }, sa_mask: sigset, sa_flags: int, diff --git a/rt/+openbsd/types.ha b/rt/+openbsd/types.ha @@ -263,8 +263,8 @@ export def NSIG: int = 32; export type sigact = struct { union { - sa_handler: *fn (int) void, - sa_sigaction: *fn (int, *siginfo, *opaque) void, + sa_handler: nullable *fn (int) void, + sa_sigaction: nullable *fn (int, *siginfo, *opaque) void, }, sa_mask: sigset, sa_flags: int,