[comp.lang.c++] need tool for C++ifying C headers

jimk@sequent.UUCP (Jim Keniston) (03/18/89)

I'm bringing up a C++ cross compiler (we have v1.2) for an operating
system that I choose not to characterize on the net.  I would like to
create C++ versions of the C header files for this system -- that is,
replace the K&R-style function declarations with C++-style "function
prototypes".  The C++ header files provided with v1.2 are not a very
good starting place, because they seem to be based on an old release of
System V.  Also, if the C header files are changed, I would like to be
able to keep the C++ headers in synch more or less automatically.

I figure that I need:
1) a list of C++ function definitions that correspond to the
	C function definitions in the standard header files in
	/usr/include; and
2) a program that reads a C header file and inserts the appropriate
	declarations from (1).

I am told that (2) exists; can someone point me to a copy?

Also, item (1) would be easier to build if I had a program (maybe a
modified version of cfront?) to extract C++ function declarations from
the v1.2 header files.  Has anybody built such a program?

Thanks for any help you can give.

Jim Keniston
Sequent Computer Systems
...uunet!sequent!jimk