home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.coherent
- Subject: Re: lint (was Re: various questions)
- Path: sparky!uunet!think.com!unixland!rmkhome!rmk
- From: rmk@rmkhome.UUCP (Rick Kelly)
- Organization: The Man With Ten Cats
- Date: Mon, 23 Nov 1992 16:44:49 GMT
- Reply-To: rmk@rmkhome.UUCP (Rick Kelly)
- Message-ID: <9211231144.52@rmkhome.UUCP>
- References: <9211211510.17@rmkhome.UUCP> <9211225585@umunk.GUN.de>
- Lines: 42
-
- In article <9211225585@umunk.GUN.de> udo@umunk.GUN.de (Udo Munk) writes:
- >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.
-
- Lint can be helpful, but it can also get confused at times.
-
- The Coherent 4.0 C compiler does a surprising good job of integrating
- some of the features of lint.
-
- Back in the early '80s, Whitesmith C would try to compile anything. We used
- to say that it would probably compile the telephone book. Lint was a badly
- needed tool at that time.
-
- --
-
- Rick Kelly rmk@rmkhome.UUCP unixland!rmkhome!rmk rmk@frog.UUCP
-