/[MITgcm]/MITgcm/tools/OAD_support/cb2mGetModules.awk
ViewVC logotype

Diff of /MITgcm/tools/OAD_support/cb2mGetModules.awk

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

revision 1.1 by heimbach, Thu Sep 20 23:12:47 2012 UTC revision 1.2 by utke, Fri Nov 9 18:54:16 2012 UTC
# Line 1  Line 1 
1  BEGIN { commonDecl = 0}  BEGIN { commonDecl = 0}
2  /^      .*/ {commonDecl = 0 }  /^      .*/ {commonDecl = 0 }
3  /^[^ ]/ && !/^#ifdef / && !/^#endif/ && !/^#if / && !/^#else/ && !/^c.*/ && !/^C.*/ {commonDecl = 0 }  /^[^ ]/ && !/^# *ifdef / && !/^# *endif/ && !/^# *if / && !/^# *else/ && !/^c.*/ && !/^C.*/ {commonDecl = 0 }
4  /^       *COMMON/ || /^       *common/ { commonDecl = 1 }  /^       *COMMON/ || /^       *common/ { commonDecl = 1 }
5  /^#ifdef / || /^#endif/ || /^#if / || /^#else/ { if (commonDecl == 1) {print} }  /^# *ifdef / || /^# *endif/ || /^# *if / || /^# *else/ { if (commonDecl == 1) {print} }
6  {if (commonDecl ==0 ) print }  {if (commonDecl ==0 ) print }
7  END {}  END {}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22