From 613f3db11b2f6a7ccfc258a7b4b2b2218c983bd7 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 10 Jul 2009 16:29:26 -0700 Subject: cleanup in preparation for new scoping. walkstate -> walkstmt walktype -> walkexpr; stmts moved to walkstmt walktype and friends have a final Node **init argument that can have side effects appended, making it more explicit when they do and do not happen. this replaces the old global addtop and addtotop. delete switch map and interface conversion cases (dropped from the language months ago). R=ken OCL=31465 CL=31468 --- src/cmd/gc/sinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/gc/sinit.c') diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c index 021b03014..fa7aabdab 100644 --- a/src/cmd/gc/sinit.c +++ b/src/cmd/gc/sinit.c @@ -249,7 +249,7 @@ mapindex(Node *n) b = nod(OAS, b, val); a = nod(OLIST, a, b); - walktype(a, Etop); + walkexpr(a, Etop, nil); return a; } -- cgit v1.2.3