怎样从C工程中移除注释以及#if 0代码
- GCC
- unifdef
- sunifdef
- scc-snapshots
GCC preprocesse
gcc -fpreprocessed -dD -E app_test.c- -fpreprocessedIndicate to the preprocessor that the input file has already been preprocessed.
- -dDDump all macro definitions, at the end of preprocessing, in addition to normal output.
- -Ethe linker is not run
scc-snapshots
$ sunifdef -DDEFINED -ned < app_test.c > 2.c