🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #72085

Re: GNU Lint?

#72085
From: David Fox
Date: Sat, 04 Apr 1992 20:36
22 lines
1675 bytes
In article <1992Apr3.182448.1894@cc.gatech.edu> arnold@cc.gatech.edu (Arnold Robbins) writes:

   |In article <4=kjtlc@dixie.com> eeh@dixie.com (Ed Howland) writes:
   |    I have been trying to find sources to a public domain version of lint,
   |    with little avail. Is the GNU project working on this?

   nelson@sun.soe.clarkson.edu (Russ Nelson) writes:

   >Nope.  The idea is that gcc does what lint does, only it does it
   >every time you compile.  Damn good idea, too!

   Alas, this is not quite true.  GCC does most of what lint does.  At
   least one exception is cross-file checking.  GCC won't catch a
   function declared one way in one file and defined another way in
   another file.

This is a good reason to use a C++ compiler to compile your C
code.  It encodes the types of the arguments in the function
symbol so if you declare it differently in different places
your program won't link.

-david
Technical Details
Message-ID: <FOX.92Apr4153619@graphics.nyu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!hsdndev!cmcl2!cs!fox
References: <4=kjtlc@dixie.com> <NELSON.92Apr2210851@cheetah.clarkson.edu> <1992Apr3.182448.1894@cc.gatech.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,1115d30c45166f3c
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1992-04-04 12:36:19 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!hsdndev!cmcl2!cs!fox
From: fox@cs.nyu.edu (David Fox)
Newsgroups: gnu.misc.discuss
Subject: Re: GNU Lint?
Message-ID: <FOX.92Apr4153619@graphics.nyu.edu>
Date: 4 Apr 92 20:36:19 GMT
References: <4=kjtlc@dixie.com> <NELSON.92Apr2210851@cheetah.clarkson.edu>
 <1992Apr3.182448.1894@cc.gatech.edu>
Sender: notes@cmcl2.nyu.edu (Notes Person)
Organization: Courant Institute of Mathematical Sciences
Lines: 22
In-Reply-To: arnold@cc.gatech.edu's message of Fri, 3 Apr 1992 18:24:48 GMT
Nntp-Posting-Host: graphics.cs.nyu.edu