Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1027/7

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


Call a pointer a pointer.
 [rsc] --rw-rw-r-- M 320859 glenda sys 1127 Oct 27 10:38 sys/src/cmd/tbl/tm.c
	/n/sourcesdump/2005/1027/plan9/sys/src/cmd/tbl/tm.c:5,12 - 
	/n/sourcesdump/2005/1028/plan9/sys/src/cmd/tbl/tm.c:5,12
	  maknew(char *str)
	  {
	  				/* make two numerical fields */
	- 	int	dpoint, c;
	- 	char	*p, *q, *ba;
	+ 	int	c;
	+ 	char	*p, *q, *ba, *dpoint;
	  
	  	p = str;
	  	for (ba = 0; c = *str; str++)
	/n/sourcesdump/2005/1027/plan9/sys/src/cmd/tbl/tm.c:18,24 - 
	/n/sourcesdump/2005/1028/plan9/sys/src/cmd/tbl/tm.c:18,24
	  			if (*str == '.' && !ineqn(str, p) && 
	  			    (str > p && digit(*(str - 1)) || 
	  			    digit(*(str + 1))))
	- 				dpoint = (int)str;
	+ 				dpoint = str;
	  		}
	  		if (dpoint == 0)
	  			for (; str > p; str--) {
	/n/sourcesdump/2005/1027/plan9/sys/src/cmd/tbl/tm.c:28,34 - 
	/n/sourcesdump/2005/1028/plan9/sys/src/cmd/tbl/tm.c:28,34
	  		if (!dpoint && p == str) /* not numerical, don't split */
	  			return(0);
	  		if (dpoint) 
	- 			str = (char *)dpoint;
	+ 			str = dpoint;
	  	} else
	  		str = ba;
	  	p = str;


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.