ANSI C lint type tool wanted

George Wu gwu at nujoizey.tcs.com
Thu Aug 2 04:54:26 AEST 1990


In article <6568 at tekcrl.LABS.TEK.COM>, markh at tekcrl.LABS.TEK.COM (Mark C
Henderson) writes:
|> We are looking for an ANSI C lint.
|> 
|> gcc -Wall won't do what we want. In particular it doesn't cover what
|> is covered by pass 2 in SUN OS lint, i.e. checking the consistency of
|> declarations across files.

     Use header files, ie. something like:

foo.h:
======
extern int func(const char *);

file1.c:
========
#include "foo.h"

int
func(const char* s)
{
}

file2.h:
=======
#include "foo.h"

int
main(int argc, char* argv[])
{
    while (argc) {
        func(argv[argc--]);
    }
}

|> Please respond by Email as I don't read these groups all that
|> regularly. Any pointers would be appreciated.

     I posted and emailed this response.

							George

----
George J Wu                           | gwu at tcs.com or ucbcad!tcs!gwu
Software Engineer                     | 2121 Allston Way, Berkeley, CA, 94704
Teknekron Communications Systems, Inc.| (415) 649-3752



More information about the Comp.lang.c mailing list