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

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


upas/marshal: avoid use of inline keyword
 [rsc] --rw-rw-r-- M 303009 glenda sys 32859 Mar  9 09:18 sys/src/cmd/upas/marshal/marshal.c
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/upas/marshal/marshal.c:10,16 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/upas/marshal/marshal.c:10,16
	  	Attach	*next;
	  	char	*path;
	  	char	*type;
	- 	int	inline;
	+ 	int	ainline;
	  	Ctype	*ctype;
	  };
	  
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/upas/marshal/marshal.c:382,388 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/upas/marshal/marshal.c:382,388
	  		Bprint(&out, "\tboundary=\"%s\"\n\n", boundary);
	  		Bprint(&out, "This is a multi-part message in MIME format.\n");
	  		Bprint(&out, "--%s\n", boundary);
	- 		Bprint(&out, "Content-Disposition: inline\n");
	+ 		Bprint(&out, "Content-Disposition: ainline\n");
	  	}
	  
	  	if(!nflag){
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/upas/marshal/marshal.c:679,686 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/upas/marshal/marshal.c:679,686
	  	if(strcmp(a->type, "text/plain") != 0)
	  		Bprint(out, "Content-Type: %s\n", a->type);
	  
	- 	if(a->inline){
	- 		Bprint(out, "Content-Disposition: inline\n");
	+ 	if(a->ainline){
	+ 		Bprint(out, "Content-Disposition: ainline\n");
	  	} else {
	  		p = strrchr(a->path, '/');
	  		if(p == nil)
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/upas/marshal/marshal.c:806,812 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/upas/marshal/marshal.c:806,812
	  }
	  
	  Attach*
	- mkattach(char *file, char *type, int inline)
	+ mkattach(char *file, char *type, int ainline)
	  {
	  	Ctype *c;
	  	Attach *a;
	/n/sourcesdump/2006/0309/plan9/sys/src/cmd/upas/marshal/marshal.c:824,830 - 
	/n/sourcesdump/2006/0310/plan9/sys/src/cmd/upas/marshal/marshal.c:824,830
	  	a->path = file;
	  	a->next = nil;
	  	a->type = type;
	- 	a->inline = inline;
	+ 	a->ainline = ainline;
	  	a->ctype = nil;
	  	if(type != nil){
	  		for(c = ctype; ; 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].