ref: 23223a7626a6ccea0598937a94d15709afd0eb20
parent: 980f6c7548c5917cef835c84c0aeb96773175785
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 21 18:53:47 EDT 2015
Clear up comments.
--- a/libstd/ipparse.myr
+++ b/libstd/ipparse.myr
@@ -74,7 +74,7 @@
;;
nseg = 0
for i = 0; ip.len > 0 && ok; i++
- /* parse ':num' */
+ /* parse 'num' segment */
(v, ip, ok) = num(ip, 0, 65536, 16, ':', ok)
nseg++
if ip.len == 0 || nseg == 8
@@ -105,6 +105,7 @@
;;
}
+/* take "a:b::c:d" and expand it to "a:b:0:0:...:0:c:d" */
const expandsplit = {ip, split, len
var width