[comp.sources.wanted] A new lint wanted

lwv@n8emr.UUCP (Larry W. Virden) (08/05/87)

References:



I would like to get a version of lint running under Ultrix 1.2 that
works.  Or at least, that appears to work.  The one that I am using now
says that expressions like:

char	abc = 0;
main()
{
	if ( ! abc )
		printf("False\n");
	else
		printf("True\n");
	exit(0);
}

should not be using a constant argument to NOT.  I THINK, but am not
100% positive, that it says the same thing even for pointers in the above
expression.

Regardless of one's opinion of the coding style in and of itself, I am not
very impressed with the message, which to me is either too cryptic to understand
or else is misleading; since the variable can change, how can it be a constant?
It is almost as if lint thinks I am talking about the address of abc or something.

Anyways, I am looking for a 'better' lint.  Personally, the one I was using
under the System III-like system that I am used to was more conducive to reading
and using the info, but for various reasons I dont want to hassle with others
to get legal permissions to port that code - I am looking for a somewhat shorter
term solution.  Does anyone know of a source for a Unix-y lint?  It can have
the current ANSI draft standards implemented - I really won't mind :-).
Otherwise, just so it truely shows me REAL problems and lets me shut up 
"non" problems that is all I really care about.

Otherwise, does anyone have a good source of info on how a lint is designed?
How would one write such a creature?  Thanks!

-- 
Larry W. Virden	 75046,606 (CIS)
674 Falls Place, Reynoldsburg, OH 43068 (614) 864-8817
cbosgd!n8emr!lwv HAM/SWL BBS (HBBS) 614-457-4227.. 300/1200 bps
We haven't inherited the world from our parents, but borrowed it from our children.