shithub: mc

Download patch

ref: ceca87556db62e3e6b27e362a0391a0bcc322f3d
parent: 745fee5b237ca93ba7c7d87030829edf177dc56d
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Feb 18 16:22:41 EST 2018

sjlj types are arch-specific.

--- a/lib/std/bld.sub
+++ b/lib/std/bld.sub
@@ -53,7 +53,7 @@
 	search.myr
 	sjlj-impl+plan9-x64.s
 	sjlj-impl+posixy-x64.s
-	sjlj.myr
+	sjlj+x64.myr
 	slcp.myr
 	sldup.myr
 	sleep.myr
--- /dev/null
+++ b/lib/std/sjlj+x64.myr
@@ -1,0 +1,8 @@
+pkg std =
+	type jmpbuf = struct
+		regs	: uint64[9]
+	;;
+
+	extern const setjmp	: (jb : jmpbuf# -> bool)
+	extern const longjmp	: (jb : jmpbuf# -> void)
+;;