Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!dciem!nrcaer!cognos!brianc From: brianc@cognos.uucp (Brian Campbell) Newsgroups: comp.sources.wanted,comp.lang.c Subject: Re: WANTED: ANSII C prototype generators Message-ID: <1718@cognos.UUCP> Date: Thu, 5-Nov-87 11:42:21 EST Article-I.D.: cognos.1718 Posted: Thu Nov 5 11:42:21 1987 Date-Received: Sun, 8-Nov-87 07:42:04 EST References: <607@hyper.UUCP> Reply-To: brianc@cognos.UUCP (Brian Campbell) Organization: Cognos Incorporated, Ottawa, Canada Lines: 18 Xref: dciem comp.sources.wanted:2303 comp.lang.c:4885 In article <607@hyper.UUCP> mark@hyper.UUCP writes: > I desperately need a program that will take C source files and generate > function prototypes ala ANSII. You haven't mentioned what sort of hardware you're running on. If you've got access to the Microsoft C compiler (under DOS or XENIX) you can compile all your sources with the -Zg option (which is reported as a syntax check I believe). This will produce a list of all the functions defined (both static and global) with an ANSI function prototype. Unfortunately, this prototype will report the types after the preprocessor pass; FILE *fp is shown as struct _iobuf *fp. Maybe your lint will produce a human-readable library ... or maybe someone has written a program to convert a lint library into a more readable format? -- Brian Campbell uucp: decvax!utzoo!dciem!nrcaer!cognos!brianc Cognos Incorporated mail: POB 9707, 3755 Riverside Drive, Ottawa, K1G 3Z4 (613) 738-1440 fido: (613) 731-2945 300/1200, sysop@1:163/8