shithub: mc

Download patch

ref: b9b8f61c838c2a384ead451f70de9d30a97526d0
parent: 80ade912fa6ecf863d0f36ebc8fd3c999b45746e
author: Ori Bernstein <ori@eigenstate.org>
date: Thu May 7 07:16:12 EDT 2015

Fix up OSX to work with previous tests.

--- a/libregex/bld.sub
+++ b/libregex/bld.sub
@@ -10,6 +10,8 @@
 bin redump {noinst} =
 	redump.myr
         lib ../libstd:std
+        lib ../libbio:bio
+        lib regex
 ;;
 
 gen ranges.myr {durable} =
--- a/libstd/sys+osx-x64.myr
+++ b/libstd/sys+osx-x64.myr
@@ -39,6 +39,7 @@
 		`Waitexit int32
 		`Waitsig  int32
 		`Waitstop int32
+		`Waitfail int32
 	;;
 
 	type statbuf = struct
@@ -924,6 +925,9 @@
 }
 
 const waitstatus = {st
+	if st < 0
+		-> `Waitfail st
+	;;
 	match st & 0o177
 	| 0:    -> `Waitexit (st >> 8)
 	| 0o177:-> `Waitstop (st >> 8)
--- a/test/mandelbrot.myr
+++ b/test/mandelbrot.myr
@@ -29,6 +29,7 @@
 			-> 0
 		;;
 	;;
+	-> 0
 }
 
 const main = {args : byte[:][:]