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: <2273@cognos.UUCP> Date: 11 Feb 88 19:15:31 GMT Article-I.D.: cognos.2273 Posted: Thu Feb 11 14:15:31 1988 References: <201@fxgrp.UUCP> Reply-To: brianc@cognos.UUCP (Brian Campbell) Organization: Cognos Incorporated, Ottawa, Canada Lines: 30 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. ! ! For example, consider the following program fragment ... ! ! char *foo(a, b, c) ! char *c; ! int b; ! { ... } ! ! This program would produce something similar to the following: ! ! char *foo(char *a, int b, int c); I'm sure you meant to say "char *a;" in the program fragment, but I won't comment on that... 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). Anyway, perhaps someone who knows a little more about the format of lint libraries can post the information, or better yet, write a program that takes a lint library and produces function prototypes? Presumably you won't have to generate the prototypes too often. -- 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