Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!watmath!clyde!burl!we13!ihnp4!zehntel!hplabs!hao!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.lang.c Subject: Re: Wanted--better way to please lint and sccs Message-ID: <1767@rlgvax.UUCP> Date: Mon, 5-Mar-84 20:06:46 EST Article-I.D.: rlgvax.1767 Posted: Mon Mar 5 20:06:46 1984 Date-Received: Wed, 7-Mar-84 06:58:38 EST References: <831@elsie.UUCP> <7447@mgweed.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 17 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