Wanted--better way to please lint and sccs

Guy Harris guy at rlgvax.UUCP
Tue Mar 6 11:06:46 AEST 1984


The clean way to solve the problem is:

#ifndef lint
static char sccsid[] = "...";
#endif

This works on systems using the BTL implementation of "lint", at least on
4.xBSD and System III and later versions, because the initial list of
parameters passed to "cpp" from the "/usr/bin/lint" shell file is:

	O="-C -Dlint"  X=  P=unix	#default parameters

So "lint" is predefined when something is passed through "lint".  This trick
is used quite a bit in Berkeley code.

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy



More information about the Comp.lang.c mailing list