Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!ditmela!yarra!bohra!als From: als@bohra.cpg.oz (Anthony Shipman) Newsgroups: comp.lang.c Subject: Re: Can lint help an ANSI-C programmer? Summary: lint is still useful Message-ID: <115@bohra.cpg.oz> Date: 31 May 90 03:16:30 GMT References: <6328.265D8157@puddle.fidonet.org>,<1754@tkou02.enet.dec.com> <00937758.16FBE220@rigel.efd.lth.se> Organization: Computer Power Group, Melb, Australia Lines: 17 In article <00937758.16FBE220@rigel.efd.lth.se>, e89hse@rigel.efd.lth.se writes: > I don't see what lint discovers that a C-compiler with prototypes can't > discover, except wrong external declarations like: hello[100], char *hello. Lint does more than just type checking. It checks for possible logic errors too. A frequent life saver is the way it warns me when it finds: if (x = 1) { ... } Other checks include unreachable code etc which may indicate coding errors. -- Anthony Shipman ACSnet: als@bohra.cpg.oz.au Computer Power Group 9th Flr, 616 St. Kilda Rd., St. Kilda, Melbourne, Australia D