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

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


cc: add C99 declaration syntax and (ignored) restrict and inline keywords.
 [rsc] --rw-rw-r-- M 2005116 glenda sys 16159 Mar  1 18:15 sys/src/cmd/cc/cc.y
	[diffs elided - too long]
	[diff -c /n/sourcesdump/2006/0301/plan9/sys/src/cmd/cc/cc.y /n/sourcesdump/2006/0302/plan9/sys/src/cmd/cc/cc.y]
 [rsc] --rw-rw-r-- M 2005116 glenda sys 23973 Mar  1 16:54 sys/src/cmd/cc/lex.c
	/n/sourcesdump/2006/0301/plan9/sys/src/cmd/cc/lex.c:1124,1132 - 
	/n/sourcesdump/2006/0302/plan9/sys/src/cmd/cc/lex.c:1124,1134
	  	"for",		LFOR,		0,
	  	"goto",		LGOTO,		0,
	  	"if",		LIF,		0,
	+ 	"inline",	LINLINE,	0,
	  	"int",		LINT,		TINT,
	  	"long",		LLONG,		TLONG,
	  	"register",	LREGISTER,	0,
	+ 	"restrict",	LRESTRICT,	0,
	  	"return",	LRETURN,	0,
	  	"SET",		LSET,		0,
	  	"short",	LSHORT,		TSHORT,
 [rsc] --rw-rw-r-- M 2005116 glenda sys 16159 Mar  1 18:15 sys/src/cmd/cc/cc.y
 [rsc] --rw-rw-r-- M 2005116 rsc sys 1302 Mar  1 18:42 sys/src/cmd/cc/c99
 [rsc] --rw-rw-r-- M 2005116 glenda sys 26858 Mar  1 18:42 sys/src/cmd/cc/dcl.c
	/n/sourcesdump/2006/0301/plan9/sys/src/cmd/cc/dcl.c:537,542 - 
	/n/sourcesdump/2006/0302/plan9/sys/src/cmd/cc/dcl.c:537,543
	  				l->offset = o;
	  			} else {
	  				if(l->width <= 0)
	+ 				if(l->down != T)
	  					if(l->sym)
	  						diag(Z, "incomplete structure element: %s",
	  							l->sym->name);


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.