shithub: mc

Download patch

ref: 0de076266f9f82aed32303650b469cf287cb98f2
parent: 492c991bcb22a37377505fc97f8e976ef17bb9c1
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jul 23 16:23:31 EDT 2017

Conform to new generic scoping on plan 9.

--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -270,12 +270,12 @@
 }
 
 /* duplicated code to break dependency cycle */
-generic _getle16 = {buf
+generic _getle16 = {buf -> @a::(numeric,integral)
 	-> ((buf[0] : @a::(numeric,integral)) << 0) | \
 		((buf[1] : @a::(numeric,integral)) << 8)
 }
 
-generic _getle32 = {buf
+generic _getle32 = {buf -> @a::(numeric,integral)
 	-> ((buf[0] : @a::(numeric,integral)) << 0) | \
 		((buf[1] : @a::(numeric,integral)) << 8) | \
 		((buf[2] : @a::(numeric,integral)) << 16) | \
@@ -282,7 +282,7 @@
 		((buf[3] : @a::(numeric,integral)) << 24)
 }
 
-generic _getle64 = {buf
+generic _getle64 = {buf -> @a::(numeric,integral)
 	-> ((buf[0] : @a::(numeric,integral))  << 0) | \
 		((buf[1] : @a::(numeric,integral))  << 8) | \
 		((buf[2] : @a::(numeric,integral))  << 16) | \