Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 8/28/84; site lll-crg.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!gymble!lll-crg!brooks From: brooks@lll-crg.ARPA (Eugene D. Brooks III) Newsgroups: net.lang.c Subject: Re: Re: How to let lint check your format strings Message-ID: <518@lll-crg.ARPA> Date: Tue, 9-Apr-85 23:28:09 EST Article-I.D.: lll-crg.518 Posted: Tue Apr 9 23:28:09 1985 Date-Received: Fri, 12-Apr-85 06:03:44 EST References: <558@mcvax.UUCP> <1582@ukma.UUCP> Organization: Lawrence Livermore Labs, CRG group Lines: 11 > Something that may not have been obvious....to turn it back off > when the code is de-linted, have another .h file like this: > > #define procent_a(a) a > #define procent_b(a) a The idea of having lint use constant format strings to check types and arg counts is a great one. I have wanted to do this for many years as argument types and counts for printf and its buddies are one of my more frequent errors. Could we come up with a system that does not require any includes or modifications to the code to do it? This would be great!