-
Notifications
You must be signed in to change notification settings - Fork 16
/
DETAILS
21 lines (19 loc) · 897 Bytes
/
DETAILS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
MODULE=unifdef
VERSION=1.0
SOURCE=$MODULE-$VERSION.tar.gz
SOURCE_URL=http://www.cs.cmu.edu/~ajw/public/dist/
WEB_SITE=http://www.cs.cmu.edu/~ajw/public/dist/
ENTERED=20060924
UPDATED=20060924
SHORT="remove preprocessor definitions"
cat << EOF
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.
EOF