shithub: mc

Download patch

ref: 748bbe0f48de5f93e0756c02e131e7e9402fc6d5
parent: ace6638a4476a4a3b3b7d7969d30f6bdcd7ec4d3
author: Ori Bernstein <[email protected]>
date: Fri Jul 27 11:13:26 EDT 2012

Improve commenting.

--- a/str.myr
+++ b/str.myr
@@ -17,13 +17,13 @@
 	var tmp
 
 	c = str[0]
-	if c & 0x80 == 0 /* ascii range */
+	if c & 0x80 == 0	/* 0b0xxx_xxxx */
 		len = 1
-	elif c & 0xe0 == 0xc0 /* 0b110x_xxxx */
+	elif c & 0xe0 == 0xc0	/* 0b110x_xxxx */
 		len = 2
-	elif c & 0xf0 == 0xe0 /* 0b1110_xxxx */
+	elif c & 0xf0 == 0xe0 	/* 0b1110_xxxx */
 		len = 3
-	elif c & 0xf8 == 0xf0 /* 0b1111_0xxx */
+	elif c & 0xf8 == 0xf0 	/* 0b1111_0xxx */
 		len = 4
 	else
 		/* skip one char forward so we can try