Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!widman From: widman@cs.utexas.edu (Lawrence Widman) Newsgroups: comp.sources.wanted Subject: Wanted: Ansi C to K&R C converter (new->old prototype converter) Message-ID: <7569@cs.utexas.edu> Date: 13 Jan 90 03:11:02 GMT Organization: U. Texas CS Dept., Austin, Texas Lines: 39 Hi! I've got lots (~= 20,000 lines) of beautiful C code written in Turbo C on a 386-box that I need to port to SunOS 4.0.3 on a Sun 4. My problem is that I've used ANSI-style function declarations and prototypes, which (I don't think) SunOS's standard C compiler and/or C pre-processor will take. What I'd like is a filtering program that will do the following: [It sees the following prototype:] extern struct foo *bar(char *a, int b, struct foo **c); [It outputs:] extern struct foo *bar(); [It sees the following function declaration:] struct foo *bar(char *a, int b, struct foo **c) { /* * Some code */ } [It outputs:] struct foo *bar(a, b, c) char *a; int b; struct foo **c; { /* * Some code */ } Any pointers?? Thanks, Larry Widman