Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0103/2

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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);


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].