Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 SMI; site sun.uucp Path: utzoo!linus!decvax!decwrl!sun!gnu From: gnu@sun.uucp (John Gilmore) Newsgroups: net.lang.c Subject: Re: Why does lint foul up on #if 0 Message-ID: <435@sun.uucp> Date: Fri, 27-Jan-84 04:42:25 EST Article-I.D.: sun.435 Posted: Fri Jan 27 04:42:25 1984 Date-Received: Thu, 2-Feb-84 04:44:49 EST References: <3942@edai.UUCP> Organization: Sun Microsystems, Inc. Lines: 9 I believe this is a cpp bug. Lint is a shell script -- try catting it. It invokes "cpp -C -Dlint" on your files and processes the output. The -C is to keep the comments (eg, /*NOTREACHED*/). However, some versions of cpp have a bug where a comment on an #if screws up. This never bothers the compiler since it asks that cpp strip comments anyway, but shows up for lint. There's probably a relatively trivial fix for this problem in cpp but I don't have it at hand. Any volunteers?