home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / coherent / 5808 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  2.1 KB

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