shithub: mc

Download patch

ref: 65a5ecf2c2105ae46c7862aeb87339287bf08b46
parent: 79398034cd7521b60baba9dcdd2c3c51dd479f9f
author: Ori Bernstein <[email protected]>
date: Thu Jan 7 16:48:13 EST 2016

rename fooiter -> byfoo

--- a/lib/bio/iter.myr
+++ b/lib/bio/iter.myr
@@ -5,10 +5,10 @@
 	type lineiter = file#
 	impl iterable lineiter -> byte[:]
 
-	const lineiter	: (f : file# -> lineiter)
+	const byline	: (f : file# -> lineiter)
 ;;
 
-const lineiter = {f
+const byline = {f
 	-> f castto(lineiter)
 }
 
--- a/lib/std/bigint.myr
+++ b/lib/std/bigint.myr
@@ -200,7 +200,7 @@
 	 fit in one digit.
 	 */
 	v = mkbigint(1)
-	for c in std.chariter(str)
+	for c in std.bychar(str)
 		if c == '_'
 			continue
 		;;
--- a/lib/std/intparse.myr
+++ b/lib/std/intparse.myr
@@ -47,7 +47,7 @@
 	var cv : int32
 	
 	v = 0
-	for c in std.chariter(s)
+	for c in std.bychar(s)
 		if c == '_'
 			continue
 		;;
--- a/lib/std/utf.myr
+++ b/lib/std/utf.myr
@@ -12,7 +12,7 @@
 
 	impl iterable chariter -> char
 
-	const chariter	: (str : byte[:] -> chariter)
+	const bychar	: (str : byte[:] -> chariter)
 	const charlen	: (chr : char -> size)
 	const encode	: (buf : byte[:], chr : char -> size)
 	const decode	: (buf : byte[:] -> char)
@@ -33,7 +33,7 @@
 	}
 ;;
 
-const chariter = {str
+const bychar = {str
 	-> [.rest = str]
 }