This script is for Slackware 14.1 and may be outdated.

SlackBuilds Repository

14.1 > Development > unifdef (2.10)

unifdef (selectively processes C conditional compilation)

The unifdef utility selectively processes conditional C preprocessor #if
and #ifdef directives. It removes from a file both the directives and the
additional text that they delimit, while otherwise leaving the file alone.

It is useful for avoiding distractions when studying code that uses
#ifdef heavily for portability: the author's original motivation was to
understand xterm's pty handling code. It can be used as a lightweight
preprocessor; for example the Linux kernel uses unifdef to strip out
#ifdef __KERNEL__ sections from the headers it exports to userland. You
can use unifdef with languages other than C; for example UIT, a publisher
in Cambridge, uses unifdef with LaTeX.

Maintained by: B. Watson
Keywords: #ifdef,cpp,preprocessor,macro
ChangeLog: unifdef


Source Downloads:
unifdef-2.10.tar.xz (bb5d895e5ebbba5c5cc0c2771cf97ebe)

Download SlackBuild:
unifdef.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Individual Files:

Validated for Slackware 14.1

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2021 Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds