Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1029/2

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


Handle character following : better.
 [rsc] --rw-rw-r-- M 431581 presotto sys 18532 Oct 29 10:05 sys/src/cmd/cb/cb.c
	/n/sourcesdump/2005/1029/plan9/sys/src/cmd/cb/cb.c:52,62 - 
	/n/sourcesdump/2005/1030/plan9/sys/src/cmd/cb/cb.c:52,62
	  	exits(0);
	  }
	  void
	- work(void){
	- 	int c;
	+ work(void)
	+ {
	+ 	int c, cc;
	  	struct keyw *lptr;
	  	char *pt;
	- 	char cc;
	  	int ct;
	  
	  	while ((c = getch()) != Beof){
	/n/sourcesdump/2005/1029/plan9/sys/src/cmd/cb/cb.c:471,476 - 
	/n/sourcesdump/2005/1030/plan9/sys/src/cmd/cb/cb.c:471,477
	  				putch(cc,NO);
	  				continue;
	  			}
	+ 			unget(cc);
	  			if (question == 1){
	  				question = 0;
	  				gotop(c);


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].