Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0228/1

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


ql: various minor fixes
 [rsc] --rw-rw-r-- M 1942060 glenda sys 5936 Feb 28 11:41 sys/src/cmd/ql/l.h
	/n/sourcesdump/2006/0228/plan9/sys/src/cmd/ql/l.h:88,94 - 
	/n/sourcesdump/2006/0301/plan9/sys/src/cmd/ql/l.h:88,94
	  {
	  	Optab*	start;
	  	Optab*	stop;
	- } oprange[AEND];
	+ } oprange[ALAST];
	  
	  enum
	  {
 [rsc] --rw-rw-r-- M 1942060 glenda sys 5663 Feb 28 11:41 sys/src/cmd/ql/list.c
	/n/sourcesdump/2006/0228/plan9/sys/src/cmd/ql/list.c:64,70 - 
	/n/sourcesdump/2006/0301/plan9/sys/src/cmd/ql/list.c:64,70
	  
	  	a = va_arg(fp->args, int);
	  	s = "???";
	- 	if(a >= AXXX && a <= AEND)
	+ 	if(a >= AXXX && a < ALAST)
	  		s = anames[a];
	  	return fmtstrcpy(fp, s);
	  }
 [rsc] --rw-rw-r-- M 1942060 glenda sys 25389 Feb 28 11:41 sys/src/cmd/ql/obj.c
	/n/sourcesdump/2006/0228/plan9/sys/src/cmd/ql/obj.c:1102,1109 - 
	/n/sourcesdump/2006/0301/plan9/sys/src/cmd/ql/obj.c:1102,1116
	  gethunk(void)
	  {
	  	char *h;
	+ 	long nh;
	  
	- 	h = mysbrk((int)NHUNK);
	+ 	nh = NHUNK;
	+ 	if(tothunk >= 5L*NHUNK) {
	+ 		nh = 5L*NHUNK;
	+ 		if(tothunk >= 25L*NHUNK)
	+ 			nh = 25L*NHUNK;
	+ 	}
	+ 	h = mysbrk(nh);
	  	if(h == (char *)-1) {
	  		diag("out of memory");
	  		errorexit();
	/n/sourcesdump/2006/0228/plan9/sys/src/cmd/ql/obj.c:1110,1117 - 
	/n/sourcesdump/2006/0301/plan9/sys/src/cmd/ql/obj.c:1117,1124
	  	}
	  
	  	hunk = h;
	- 	nhunk = NHUNK;
	- 	tothunk += NHUNK;
	+ 	nhunk = nh;
	+ 	tothunk += nh;
	  }
	  
	  void


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.