Hello,
I have a Code which is C++ (*.cpp - source, *.hpp - header files).
In the overall code,there are many classes defined, their member functions, constructors, destructors for those classes, few template classes and lots of C++ stuff. Now i need to convert the source to plain C code. I have following questions -
1.) Is there any tool to convert C++ code and header files to C code?
2.) Or will I have to do total rewrite of the code(i will have to remove the constructors,destructors and move that code into some init(),deinit() functions; change classes to structures, make existing member functions as function pointers in those newly defined structures and then invoke those functions using function pointes etc..)?
3.) If at all i have to convert manually myself, what all C++ specific code-data constructs/semantics i need to take care while doing the conversion to C specific code-data semantics?
Thank you.
-AD