Parent Directory
|
Revision Log
|
Revision Graph
mixed preprocessor directives with common block definitions, tries to block out a bit better the continued common block parts interspersed with preprocessor directives but still get them all out because ifdef my be outside of the /COMMON/ while endif may be inside
| 1 | heimbach | 1.1 | BEGIN { commonDecl = 0} |
| 2 | /^ .*/ {commonDecl = 0 } | ||
| 3 | utke | 1.2 | /^[^ ]/ && !/^#ifdef / && !/^#endif/ && !/^#if / && !/^#else/ {commonDecl = 0 } |
| 4 | heimbach | 1.1 | /^ *COMMON/ || /^ *common/ { commonDecl = 1 } |
| 5 | / &/ { if (commonDecl != 1) {print} } | ||
| 6 | utke | 1.2 | /^#ifdef / || /^#endif/ || /^#if / || /^#else/ { if (commonDecl == 1) {print} } |
| 7 | heimbach | 1.1 | {if (commonDecl ==0 ) print } |
| 8 | END {} |
| ViewVC Help | |
| Powered by ViewVC 1.1.22 |