Xref: utzoo comp.lang.c:23425 comp.lang.c++:5284 comp.std.c:1977 Path: utzoo!utgpu!watmath!julian!ria!uwovax!7103_300 From: 7103_300@uwovax.uwo.ca Newsgroups: comp.lang.c,comp.lang.c++,comp.std.c Subject: Re: Automatic converters (K&R C => ANSI C) (K&R C => C++) (ANSI C => K&R C) Summary: Try mkproto Message-ID: <3997.2548e3a6@uwovax.uwo.ca> Date: 28 Oct 89 03:24:21 GMT References: <1989Oct22.113105.29034@paris.ics.uci.edu> <1004@cirrusl.UUCP> Reply-To: ersmith@uwovax.uwo.ca Followup-To: poster Lines: 23 In article <1004@cirrusl.UUCP>, dhesi@sunseeker.UUCP (Rahul Dhesi) writes: > What I really need is a tool that takes either > > int xyz(char *c, FILE *f); > > or > > int xyz(); > > and produces: > > #ifdef ANSIPROTO > int xyz(char *c, FILE *f); > #else > int xyz(); > #endif I posted such a tool (mkproto) to comp.sources.misc a while back; it produces int xyz P((char *c, FILE *f)) along with an appropriate definition for P. Mkproto has some limitations, but it works well on most "common" code (e.g. I used it to produce prototypes for Omega, with no problems).