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

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


eqn: avoid use of inline keyword
 [rsc] --rw-rw-r-- M 303009 glenda sys 7121 Mar  9 09:19 sys/src/cmd/eqn/main.c
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/eqn/main.c:12,18 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/eqn/main.c:12,18
	  void	settype(char *);
	  int	getdata(void);
	  int	getline(char *);
	- void	inline(void);
	+ void	inlineeq(void);
	  void	init(void);
	  void	init_tbl(void);
	  
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/eqn/main.c:123,129 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/eqn/main.c:123,129
	  			printf(".lf %d\n", curfile->lineno+1);
	  		}
	  		else if (type == lefteq)
	- 			inline();
	+ 			inlineeq();
	  		else if (in[0] == '.' && in[1] == 'l' && in[2] == 'f') {
	  			if (sscanf(in+3, "%d %s", &ln, fname) == 2) {
	  				free(curfile->fname);
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/eqn/main.c:154,160 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/eqn/main.c:154,160
	  	return(c);
	  }
	  
	- void inline(void)
	+ void inlineeq(void)
	  {
	  	int ds, n, sz1 = 0;
	  


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