ANSI C to K&R syntax converter

Claude Pommerell pommerel at sp14.csrd.uiuc.edu
Fri Jun 1 07:46:55 AEST 1990


I am looking for a portable converter from ANSI C syntax to
traditional Kernighan&Ritchie syntax.

It should run as a preprocessor to get my ANSI C code portable to
machines where there is no ANSI compiler or where the ANSI compiler's
lacks vectorization or parallelization support.

I am mainly interested to convert parameter lists and to get constants
and enum's converted into #define, or maybe expanded as constants in the
generated C code.

A C++ to C translator would probably do the job, but I don't want to
start porting something to big. A portable YACC or C source would be perfect.

						Claude Pommerell
						pommy at iis.ethz.ch
 



More information about the Comp.std.c mailing list