cEnum2Java


Client: In-House


Problem:

Many Java programs which rely on a C run-time library (JNI) have a tough time staying compatible when the underlying library is updated and typedefined enums change.

Specifically, I wrote this Java program to help the JMagick project stay compatible with the underlying ImageMagick library.


Solution: Create a Java source code generator which will parse the source of the C library and generate matching Java Interfaces for each typedefined enum.


Benefits:

Java projects can more easily stay up-to-date with changes in underlying C libraries.

May help Java projects use different implementations of underlying C libraries. In this specific case, GraphicsMagick should now be a suitable replacement for ImageMagick now that the enum difficulties can be easily overcome.


License: LGPL


Details: Readme.txt | Usage.txt


Source:

cEnum2Java-1.0-src.zip


Binary: cEnum2Java-1.0.zip


Technologies Used:

Java


Programs Used:

Eclipse

Wave (Optional C++ Preprocessor)