Cleanup. [jmk] --rw-rw-r-- M 208448 glenda sys 15220 Jan 3 13:17 sys/src/cmd/acid/expr.c /n/sourcesdump/2006/0103/plan9/sys/src/cmd/acid/expr.c:20,28 - /n/sourcesdump/2006/0104/plan9/sys/src/cmd/acid/expr.c:20,28 ['S'] 4, ['U'] 4, ['V'] 8, + ['W'] 8, ['X'] 4, ['Y'] 8, - ['W'] 8, ['Z'] 8, ['a'] 4, ['b'] 1, [jmk] --rw-rw-r-- M 208448 glenda sys 4671 Jan 3 13:17 sys/src/cmd/acid/util.c /n/sourcesdump/2006/0103/plan9/sys/src/cmd/acid/util.c:190,200 - /n/sourcesdump/2006/0104/plan9/sys/src/cmd/acid/util.c:190,206 if(s == 0) fatal("rget: %s\n", reg); - if(s->v->fmt == 'W') - ret = get8(map, s->v->ival, &v); - else { + switch(s->v->fmt){ + default: ret = get4(map, s->v->ival, &x); v = x; + break; + case 'V': + case 'W': + case 'Y': + case 'Z': + ret = get8(map, s->v->ival, &v); + break; } if(ret < 0) error("can't get register %s: %r\n", reg); /n/sourcesdump/2006/0103/plan9/sys/src/cmd/acid/util.c:190,200 - /n/sourcesdump/2006/0104/plan9/sys/src/cmd/acid/util.c:190,206 if(s == 0) fatal("rget: %s\n", reg); - if(s->v->fmt == 'W') - ret = get8(map, s->v->ival, &v); - else { + switch(s->v->fmt){ + default: ret = get4(map, s->v->ival, &x); v = x; + break; + case 'V': + case 'W': + case 'Y': + case 'Z': + ret = get8(map, s->v->ival, &v); + break; } if(ret < 0) error("can't get register %s: %r\n", reg);