/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad2/cb2m1.awk
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad2/cb2m1.awk

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


Revision 1.2 - (hide annotations) (download)
Thu Dec 19 16:10:14 2013 UTC (11 years, 7 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
stale

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

  ViewVC Help
Powered by ViewVC 1.1.22