summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
commit492aca3ff6f829ee09c52e17c86a808430ee7df4 (patch)
treef97424e14c9d3277c78ff53082daec725e1f4dcb /support
parent11f79ed8ff75049f6b1866d70bc032c8d18b1463 (diff)
downloadmc-492aca3ff6f829ee09c52e17c86a808430ee7df4.tar.gz
Convert from `in` to `:`.
The winds of change are a-blowin.
Diffstat (limited to 'support')
-rw-r--r--support/dumpleak.myr10
1 files changed, 5 insertions, 5 deletions
diff --git a/support/dumpleak.myr b/support/dumpleak.myr
index e5db06f..350298a 100644
--- a/support/dumpleak.myr
+++ b/support/dumpleak.myr
@@ -25,7 +25,7 @@ const main = {args
][:]
])
- for opt in cmd.opts
+ for opt : cmd.opts
match opt
| ('d', depth):
match std.intparse(depth)
@@ -39,7 +39,7 @@ const main = {args
;;
stats.tab = std.mkht(std.inthash, std.inteq)
- for d in cmd.args
+ for d : cmd.args
match bio.open(d, bio.Rd)
| `std.Ok f: dump(d, f, &stats)
| `std.Err e: std.fatal("could not open {}: {}\n", d, e)
@@ -100,7 +100,7 @@ const dumptrace = {tab
var aggr
aggr = std.mkht(hashintsl, std.sleq)
- for (k, (sz, stk)) in std.byhtkeyvals(tab)
+ for (k, (sz, stk)) : std.byhtkeyvals(tab)
match std.htget(aggr, stk[:stackaggr])
| `std.Some (count, total):
std.htput(aggr, stk[:stackaggr], (count + 1, sz + total))
@@ -109,7 +109,7 @@ const dumptrace = {tab
;;
;;
- for (stk, (n, sz)) in std.byhtkeyvals(aggr)
+ for (stk, (n, sz)) : std.byhtkeyvals(aggr)
std.put("unfreed: {} (size: {}): {}\n", n, sz, stk)
;;
}
@@ -125,7 +125,7 @@ const hashintsl = {sl
var h
h = 0
- for i in sl
+ for i : sl
h ^= std.inthash(i)
;;
-> h