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

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


more for(;;) loops
 [rsc] --rw-rw-r-- M 22963 glenda sys 9006 Mar 29 11:03 sys/src/cmd/auth/secureidcheck.c
	/n/sourcesdump/2006/0329/plan9/sys/src/cmd/auth/secureidcheck.c:188,194 - 
	/n/sourcesdump/2006/0330/plan9/sys/src/cmd/auth/secureidcheck.c:188,194
	  	b += 16;
	  	a = &resp->first;
	  	a->type = 0;
	- 	while(1){
	+ 	for(;;){
	  		if(b >= e){
	  			a->next = nil;
	  			break;			// exit loop
 [rsc] --rw-rw-r-- M 22963 jmk sys 14092 Mar 29 11:02 sys/src/cmd/aux/msexceltables.c
	/n/sourcesdump/2006/0329/plan9/sys/src/cmd/aux/msexceltables.c:467,473 - 
	/n/sourcesdump/2006/0330/plan9/sys/src/cmd/aux/msexceltables.c:467,473
	  		ap = gint(b, 4);
	  	else
	  		ap = 0;
	- 	while (1){
	+ 	for(;;){
	  		w = (opt & Unicode)? sizeof(Rune): sizeof(char);
	  
	  		while(b->len > 0){
 [rsc] --rw-rw-r-- M 22963 presotto sys 17927 Mar 29 11:03 sys/src/cmd/trace.c
	/n/sourcesdump/2006/0329/plan9/sys/src/cmd/trace.c:613,619 - 
	/n/sourcesdump/2006/0330/plan9/sys/src/cmd/trace.c:613,619
	  	paused = 0;
	  	scaleno = 7;	/* 100 milliseconds */
	  	now = nsec();
	- 	while(1) {
	+ 	for(;;) {
	  		Alt a[] = {
	  			{ mousectl->c,			nil,		CHANRCV		},
	  			{ mousectl->resizec,	nil,		CHANRCV		},


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.