Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tcs!nujoizey!gwu From: gwu@nujoizey.tcs.com (George Wu) Newsgroups: comp.lang.c Subject: Re: ANSI C lint type tool wanted Keywords: lint ANSI ansi C gcc Message-ID: <919@tcs.tcs.com> Date: 1 Aug 90 18:54:26 GMT References: <6568@tekcrl.LABS.TEK.COM> Sender: usenet@tcs.com Reply-To: gwu@nujoizey.tcs.com (George Wu) Organization: Teknekron Communications Systems Lines: 46 In article <6568@tekcrl.LABS.TEK.COM>, markh@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@tcs.com or ucbcad!tcs!gwu Software Engineer | 2121 Allston Way, Berkeley, CA, 94704 Teknekron Communications Systems, Inc.| (415) 649-3752