commit 713488b1073c9300b9f03330d1d7b750c6cd2050
parent 02b76a49cb1f219ac3df1fc13da6c0c71278d752
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 5 Jan 2023 18:08:26 -0500
rt: export jmpbuf, setjmp, and longjmp
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/rt/+aarch64/jmp.ha b/rt/+aarch64/jmp.ha
@@ -1,4 +1,4 @@
// License: MPL-2.0
// (c) 2021 Drew DeVault <sir@cmpwn.com>
-type arch_jmpbuf = [22]u64;
+export type arch_jmpbuf = [22]u64;
diff --git a/rt/+riscv64/jmp.ha b/rt/+riscv64/jmp.ha
@@ -1,4 +1,4 @@
// License: MPL-2.0
// (c) 2021 Drew DeVault <sir@cmpwn.com>
-type arch_jmpbuf = [26]u64;
+export type arch_jmpbuf = [26]u64;
diff --git a/rt/+x86_64/jmp.ha b/rt/+x86_64/jmp.ha
@@ -1,4 +1,4 @@
// License: MPL-2.0
// (c) 2021 Drew DeVault <sir@cmpwn.com>
-type arch_jmpbuf = [8]u64;
+export type arch_jmpbuf = [8]u64;
diff --git a/rt/jmp.ha b/rt/jmp.ha
@@ -1,12 +1,12 @@
// License: MPL-2.0
// (c) 2021 Drew DeVault <sir@cmpwn.com>
-type jmpbuf = struct {
+export type jmpbuf = struct {
__jb: arch_jmpbuf,
__fl: size,
__ss: [128 / size(size)]size,
};
-fn setjmp(buf: *jmpbuf) int;
+export fn setjmp(buf: *jmpbuf) int;
-@noreturn fn longjmp(buf: *jmpbuf, n: int) void;
+export @noreturn fn longjmp(buf: *jmpbuf, n: int) void;