Sunifdef

Jonathan Underwood jonathan.underwood at gmail.com
Wed May 23 12:29:13 UTC 2007


Dear Kernel list,

I've noticed in the past that unifdef is used in kernel package
building. I wonder if you're aware of a maintained and more
featureful program, Sunifdef, which has evolved from unifdef (which
seems mostly unmaintained). It's packaged for Fedora, and has a
website here:

http://www.sunifdef.strudl.org/

Quoting:

Sunifdef is a commandline tool for eliminating superfluous
preprocessor clutter from C and C++ source files. It is a more
powerful successor to the FreeBSD 'unifdef' tool.

Sunifdef is most useful to developers of constantly evolving products
with large code bases, where preprocessor conditionals are used to
configure the feature sets, APIs or implementations of different
releases. In these environments the code base steadily accumulates
#ifdef pollution as transient configuration options become obselete.
Sunifdef can largely automate the recurrent task of purging redundant
#if logic from the code.

Apologies for a slightly off topic plug.
jonathan.




More information about the Fedora-kernel-list mailing list