Automatic converters (K&R C => ANSI C) (K&R C => C++) (ANSI C => K&R C)
7103_300 at uwovax.uwo.ca
7103_300 at uwovax.uwo.ca
Sat Oct 28 13:24:21 AEST 1989
In article <1004 at cirrusl.UUCP>, dhesi at 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).
More information about the Comp.lang.c
mailing list