widman@cs.utexas.edu (Lawrence Widman) (01/13/90)
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