shithub: mc

Download patch

ref: e15876235e25605e42748c0c85ae13625e90b13a
parent: 890ecfa3dc504d7f302faab58722cc196dd0979f
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Aug 8 20:25:04 EDT 2017

Misc cleanups.

--- a/mbld/build.myr
+++ b/mbld/build.myr
@@ -16,7 +16,7 @@
 	g = b.deps
 	match std.htget(g.targs, targ)
 	| `std.Some t:	targs = t
-	| `std.None:	fatal("unknown target: {}\n", targ)
+	| `std.None:	std.fatal("unknown target: {}\n", targ)
 	;;
 	for t : targs
 		mark(b, t)
--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -32,7 +32,7 @@
 	;;
 	ok = true
 	failed = [][:]
-	for t in tests
+	for t : tests
 		if !runtest(b, t, &failed)
 			ok = false
 		;;
@@ -56,7 +56,7 @@
 const printfailed = {failed
 	if failed.len > 0
 		mbldput("FAILURES: {}\n", failed.len)
-		for t in failed
+		for t : failed
 			mbldput("\t{}\n", t)
 		;;
 	;;