ref: 10b54e590ef8bfd54c5dc9712d0864db4be4e1ce
parent: f23f4fb57fa81db4c1c6c20814910e0d12c907af
author: Ori Bernstein <[email protected]>
date: Mon Dec 16 11:15:00 EST 2013
Collaps multiple decls into one line
--- a/libstd/alloc.myr
+++ b/libstd/alloc.myr
@@ -112,8 +112,7 @@
/* Grows a slice */
generic slgrow = {sl : @a[:], len
- var i
- var n
+ var i, n
var new
/* if the slice wouldn't change buckets, we don't need to realloc. */
@@ -141,9 +140,7 @@
}
const zbytealloc = {sz
- var p
- var sl
- var i
+ var p, sl, i
p = bytealloc(sz)
sl = p[0:sz]
@@ -155,8 +152,7 @@
/* Allocates a blob that is 'sz' bytes long. Dies if the allocation fails */
const bytealloc = {sz
- var i
- var bkt
+ var i, bkt
if !initdone
for i = 0; i < buckets.len && (Align << i) <= Bktmax; i++
@@ -196,11 +192,8 @@
/* Creates a slab for bucket 'bkt', and fills the chunk list */
const mkslab = {bkt
- var i
- var p
- var s
- var b
- var bnext
+ var i, p, s
+ var b, bnext
var off /* offset of chunk head */
if bkt.ncache > 0
--- a/libstd/resolve.myr
+++ b/libstd/resolve.myr
@@ -171,9 +171,7 @@
const hosts = {pkt, id : uint16
var off
- var v
- var q
- var a
+ var v, q, a
var i
var hinf : hostinfo[:]
@@ -215,8 +213,7 @@
const dumpresponse = {pkt
- var nquery
- var nans
+ var nquery, nans
var off
var v
var i
@@ -336,8 +333,7 @@
const packname = {buf, off : size, host
var i
var start
- var seglen
- var lastseg
+ var seglen, lastseg
start = off
seglen = 0