Made in 2001 by Denis Sureau, convert sources of a C project to C++. Written in Python, it runs on any system.
GNU GPL license. Requires Python 2.x.
Features
Script that translates C to C++ in some steps:
- generating classes,
- converting functions to methods,
- replacing calls to functions by references to methods.
This tool is not easy to use. It is for experienced programmers.
Why use it?
Converting your project to C++ prevent conflits in identifiers, and ease to reuse your code.
Requirements
- You need for Python to run the scripts.
- The converter works better with a well formatted and indented source. C, C++ formatters are available on the net.
- You need for makeinfo to rebuild the doc.
and read carefully the step by step chapter.
Included tools
- Search Performs search / replacement in a file.
- Mover Move a whole project from one or more directories to a single or several differents directories. Of course, the "#include" statements are updated...
- Mklist Given the name of the file that holds the main function, recursively make a list of all files in a projet.
- Manual.
Download