Subject: Re: lint doesn't define __STDC__?
To: David Holland <dholland+netbsd@eecs.harvard.edu>
From: Johan =?iso-8859-1?Q?Wall=E9n?= <johan.wallen+lists@helsinki.fi>
List: tech-toolchain
Date: 11/07/2007 20:32:28
David Holland <dholland+netbsd@eecs.harvard.edu> writes:

> What C dialect is lint supposed to be processing?

My reading of lint(1) is that the default is ANSI C89 / ISO C90 (without
options like -t or -S).  So __STDC__ should be defined, if I understand
correctly. 

[...]

I have for a long time had a confusion about lint, and this might be a
good occation (although it is off-topic) to ask: should not lint be an
obsolete tool?  A C compiler should have more information available, so
it should be able to do all the checks lint does and more?  In an ideal
world, at least.

-- Johan