Non-reentrant code generated by C compiler

ado at elsie.UUCP ado at elsie.UUCP
Wed Aug 22 08:15:18 AEST 1984


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)



More information about the Comp.lang.c mailing list