lint [but not really printf]

Bob Weissman bob at omni.com
Sun Jul 16 12:31:24 AEST 1989


In article <203 at estinc.UUCP>, fnf at estinc.UUCP (Fred Fish) writes:
> I can honestly say that I have NEVER been bitten by this sort of bug in
> my own C code, because my style rules dictate that it be written as:
> 	if (condition) {
> 		action;
> 	}
...
> If you are going to leave them out, at least have the decency to
> write it as:
> 	if (condition) action;
> (Sorry about the obvious, but this is my pet peeve #1 about other
>  people's code...)

P L E A S E, let us not begin another round of My C Coding Style Is Better
Than Yours.  How boring.

Remember the origin of this thread of discussion was lint.

I still maintain that lint ought to warn you about "if (e);".


-- 
Bob Weissman
Domainish: bob at omni.com
UUCPish:   ...!{amdahl,apple,pyramid,tekbspa,uunet}!koosh!bob



More information about the Comp.lang.c mailing list