Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!tektronix!sequent!jimk From: jimk@sequent.UUCP (Jim Keniston) Newsgroups: comp.lang.c++ Subject: need tool for C++ifying C headers Message-ID: <12784@sequent.UUCP> Date: 17 Mar 89 22:38:44 GMT Reply-To: jimk@sequent.UUCP (Jim Keniston) Distribution: usa Organization: Sequent Computer Systems, Inc Lines: 27 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