[comp.lang.c] ANSI<->classical converter

xmjschm@mbcrrb.dfci.harvard.edu (Mike Schmelzer) (09/20/90)

	I am in the unfortunate position of having to use an
archaic and non-conforming compiler.

	This is unfortunate because I have a lot of source that
has ANSI function declarations and definitions.

	In the excellent C Style document, you discuss the mixing
of ANSI declarations and classic definitions. The document
describes a nice macro, PROTO(), that automatically switches between
ANSI and classic declarations.

	Unfortunately, the document goes on to state that ANSI
declarations and classic definitions are incompatible, with your
ultimate suggestion on the subject being:

/*** BEGIN QUOTE ***/
                 In the end, it may be best to write in only  one  style
            (e.g.,  with  prototypes).  When a non-prototyped version is
            needed, it is generated using an automatic conversion tool.
/*** END QUOTE ***/

	Which leads to my question: Is there such a tool? Where? (I
strongly suspect that something useful is in the uunet archives.)
Either post your response (because this is a common problem) or mail
it (because this question is so common that another posted answer would
be redundant. I haven't seen the FAQ lately.) Or both. (Redundancy.) :-)

	Thanks a lot!
--
========== Mike Schmelzer ============== "If looks could kill,
===== xmjschm@mbcrr.harvard.edu ========  here's looking at you."
=========== 608-262-5013 ===============         - Eleventh Dream Day