Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site elsie.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!hao!seismo!umcp-cs!cvl!elsie!ado
From: ado@elsie.UUCP
Newsgroups: net.lang.c
Subject: Re: Non-reentrant code generated by C compiler
Message-ID: <1154@elsie.UUCP>
Date: Tue, 21-Aug-84 18:15:18 EDT
Article-I.D.: elsie.1154
Posted: Tue Aug 21 18:15:18 1984
Date-Received: Thu, 23-Aug-84 02:12:47 EDT
References: <510@calgary.UUCP>
Organization: NIH-LEC, Bethesda, MD
Lines: 18

Here's a lint trap for nonportable structure returns.
It's an addition to "/usr/src/cmd/lint/lint.c"
(or whatever the equivalent is on your system).

	ed - /usr/src/cmd/lint/lint.c
	/o = p->in.op/a
	#ifndef OLDVERSION
		case NAME:
			if (pflag && p->in.type == (FTN | STRTY))
				werror("nonportable return of structure");
			break;
	#endif
	.
	w
	q
--
	...decvax!seismo!umcp-cs!elsie!ado	(301) 496-5688
	(DEC, VAX and Elsie are Digital Equipment Corp. and Borden's trademarks)