unifdef

Unifdef is useful for removing #ifdef'ed lines from a file while otherwise leaving the file alone. You specify which symbols are defined or undefined with -D and -U flags, and unifdef removes the corresponding ifdefs, and the enclosed code if appropriate. It's especially useful for removing those "#ifdef BROKEN" and "#ifdef PRIVATE" clauses from code before you release it. Unifdef acts on #ifdef, #ifndef, #else, and #enĀ­ dif lines, and it knows only enough about C and C++ to know when one of these is inactive because it is inside a comment, or a single or double quote.

Tags Utilities
Licenses BSD Original

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  30 Jan 2001 06:14
  • Rrelease-after

    Changes: First release.

    No-screenshot

    Project Spotlight

    Goanna

    An Eclipse plugin providing static analysis for C/C++.

    No-screenshot

    Project Spotlight

    sslh

    A server-side multiplexer for SSL and SSH.