I am working on many C-sourcecode files which contain many preprocessor #if, #elseif and #else statements.
#if
#elseif
#else
This statements often c
You can run the GNU compiler using command line option -E to do the preprocessing.
http://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
unifdef is available from http://dotat.at/prog/unifdef/.
Try Sunifdef
Edit: Which has now become Coan
You can use unifdef.