summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-02-18 21:22:41 -0800
committerOri Bernstein <ori@eigenstate.org>2018-02-18 22:47:24 -0800
commitceca87556db62e3e6b27e362a0391a0bcc322f3d (patch)
tree4bd7716556eee418c92fff443d17b3e973248a7a
parent745fee5b237ca93ba7c7d87030829edf177dc56d (diff)
downloadmc-ceca87556db62e3e6b27e362a0391a0bcc322f3d.tar.gz
sjlj types are arch-specific.
-rw-r--r--lib/std/bld.sub2
-rw-r--r--lib/std/sjlj+x64.myr8
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/std/bld.sub b/lib/std/bld.sub
index 4b6d1bc..244b992 100644
--- a/lib/std/bld.sub
+++ b/lib/std/bld.sub
@@ -53,7 +53,7 @@ lib std =
search.myr
sjlj-impl+plan9-x64.s
sjlj-impl+posixy-x64.s
- sjlj.myr
+ sjlj+x64.myr
slcp.myr
sldup.myr
sleep.myr
diff --git a/lib/std/sjlj+x64.myr b/lib/std/sjlj+x64.myr
new file mode 100644
index 0000000..19b0d39
--- /dev/null
+++ b/lib/std/sjlj+x64.myr
@@ -0,0 +1,8 @@
+pkg std =
+ type jmpbuf = struct
+ regs : uint64[9]
+ ;;
+
+ extern const setjmp : (jb : jmpbuf# -> bool)
+ extern const longjmp : (jb : jmpbuf# -> void)
+;;