/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/OAD_support/cb2mGetModules.awk
ViewVC logotype

Contents of /MITgcm_contrib/heimbach/OpenAD/OAD_support/cb2mGetModules.awk

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Oct 6 18:41:06 2008 UTC (17 years, 11 months ago) by utke
Branch: MAIN
factored out from test cases

1 BEGIN { commonDecl = 0}
2 /^ .*/ {commonDecl = 0 }
3 /^[^ ]/ && !/^#ifdef / && !/^#endif/ && !/^#if / && !/^#else/ && !/^c.*/ && !/^C.*/ {commonDecl = 0 }
4 /^ *COMMON/ || /^ *common/ { commonDecl = 1 }
5 /^#ifdef / || /^#endif/ || /^#if / || /^#else/ { if (commonDecl == 1) {print} }
6 {if (commonDecl ==0 ) print }
7 END {}

  ViewVC Help
Powered by ViewVC 1.1.22