Projects / unifdef

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 #if, #ifdef, #ifndef, #elif, #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
Licenses
Operating Systems

RSS Recent releases

  •  22 Feb 2011 22:25

    Release Notes: This release fixes the implementation of the -n option (insert #line directives) to work with the -o option (alternate output file). It greatly improves write error handling.

    •  18 Jan 2011 22:29

      Release Notes: A little fix for overwrite mode.

      •  13 Sep 2010 12:36

        Release Notes: Various trivial fixes were made, mostly related to build and release scripts.

        •  12 Mar 2010 23:32

          Release Notes: Development has been moved from CVS to git, and the build system redone. The increased version number reflects the change in the release process.

          •  21 Feb 2010 18:57

            Release Notes: The release build has been polished.

            Screenshot

            Project Spotlight

            D:GameVFS

            A minimalist VFS library for D oriented at game developers.

            Screenshot

            Project Spotlight

            AWIT DBackup

            A backup system using one archive per directory.