home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!unidui!flyer!easix!umunk!udo
- From: udo@umunk.GUN.de (Udo Munk)
- Newsgroups: comp.os.coherent
- Distribution: world
- Subject: Re: lint (was Re: various questions)
- X-Newsreader: TIN [version 1.1 PL7]
- References: <9211211510.17@rmkhome.UUCP>
- Message-ID: <9211225585@umunk.GUN.de>
- Organization: Udo Munk's private BBS
- Date: Sun, 22 Nov 92 13:23:26 GMT
- Lines: 28
-
- Rick Kelly (rmk@rmkhome.UUCP) wrote:
- : In article <1992Nov21.014517.23226@news.weeg.uiowa.edu> jboggs@umaxc.weeg.uiowa.edu (John D. Boggs) writes:
- : >
- : >Okay, it's time to ask. . . . .
- : >
- : >What, pray tell, is lint?
- :
- : The stuff that you pick out of your navel when
- : you have nothing else to do. :-)
-
- Well, a not very informative answer :-)
-
- Lint is a analyser for C sources. It checks function declarations
- agains function calls, warns about not portable constructs,
- not used variables, ignored function return values, falling
- through a case switch and a lot more. The greatest advantage
- (over ANSI C) is, that you can feed a whole project consist of
- more then one source file, through lint. It compares the function
- declaration in source file a against the function calls in
- source files b, c..., and gives warnings, if arguments are of
- the wrong type, or if the return value is used inconsistently.
- With ANSI C the programmer has to do this work writing header
- files with function prototypes. Of course there exists programs,
- which creates the prototypes from an existing source.
- And please: no hot discussions now about what is better, ANSI C
- or K&R C + lint. Both is the same, if you have to write programs
- which must be portable to older versions of UNIX use K&R C + lint,
- else use ANSI C.
- --
- Udo Munk | voice: +49 2131 275348 | uucp: +49 2131 278869
- Oberstr. 21 | mail : udo@umunk.GUN.de | 2400/1200/300 8N1
- 4040 Neuss 1 | ...!{mcshh,smurf,unido}!easix!umunk!udo | MYNAME=bbsuser
- Fed. Rep. of | CompuServe: 100021,2515 | login: uucp
- Germany | first get /usr/spool/uucppublic/info | pwd: public
-