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
Homepage:
https://dotat.at/prog/unifdef/
Download SlackBuild:
unifdef.tar.gz
unifdef.tar.gz.asc (FAQ)
(the SlackBuild does not include the source)
Individual Files: |
README |
slack-desc |
unifdef.SlackBuild |
unifdef.info |
© 2006-2025 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of
Patrick Volkerding
Linux® is a registered trademark of
Linus Torvalds