Path: utzoo!dciem!nrcaer!cognos!brianc From: brianc@cognos.uucp (Brian Campbell) Newsgroups: comp.unix.questions Subject: Re: I need to create ANSI C function prototypes. Message-ID: <2302@cognos.UUCP> Date: 18 Feb 88 17:07:01 GMT Article-I.D.: cognos.2302 Posted: Thu Feb 18 12:07:01 1988 References: <201@fxgrp.UUCP> <2273@cognos.UUCP> <445@spectrix.UUCP> Reply-To: brianc@cognos.UUCP (Brian Campbell) Organization: Cognos Incorporated, Ottawa, Canada Lines: 24 In article <201@fxgrp.UUCP> fxgrp!ljz@ames.arpa (Lloyd Zusman) writes: ! I'm looking for a program that will take old-fashioned C code and ! produce ANSI C function prototypes. In article <2273@cognos.UUCP> brianc@cognos.UUCP (Brian Campbell) writes: ! I tried to do this once before. I failed. I wanted to have lint ! create a lint-library for each source file, but lint libraries are not ! particularly readable (they're not textual). In article <445@spectrix.UUCP> clewis@spectrix.UUCP (Chris R. Lewis) writes: ! An easy hack: ! ! Take the lint shell file. Make a copy. Modify it so that it saves ! the output of the "lint1" pass. Delete the lint2 pass. Run it on ! the sources you want to have lint libraries for. Viola! The stuff ! you saved is the lint library. Not quite so simple. The lint "shell file" on this system (Sun Unix 4.2 Release 3.2) is not a script but a binary executable. Doesn't anyone know the format of the compiled lint library? -- 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