Lint woes

Dan Mick dan at kfw.COM
Tue May 21 13:34:22 AEST 1991


Is it just Sun's lint that won't detect nested comments?

I spent about six hours trying to find out why the 'code' below wasn't
ever executed (some fumble-fingered vi late at night had added the
space, and I didn't remember what else I'd changed for certain, I thought).

/* comment * /

code;

/* comment */

I kicked myself for not using lint, and then discovered lint is silent about
this construct.  

Are all lints this stupid (that is, do they all just accept output from cpp
without checking the original source)?



More information about the Comp.unix.programmer mailing list