/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/cb2mGetHeaders.awk
ViewVC logotype

Contents of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/cb2mGetHeaders.awk

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


Revision 1.2 - (show annotations) (download)
Thu Dec 19 16:10:20 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 #extract CPP directives with continuation lines from the input.
2 BEGIN { ppContd = 0}
3 /^# *ifdef .*\\$/ || /^# *ifndef .*\\$/ || /^# *endif.*\\$/ || /^# *if .*\\$/ || /^# *else.*\\$/ || /^# *define.*\\$/ { ppContd=1 }
4 !/^.*\\$/ { if (ppContd ==1) {print; ppContd=0} }
5 /^# *ifdef .*/ || /^# *ifndef .*/ || /^# *endif.*/ || /^# *if .*/ || /^# *else.*/ || /^# *define.*/ || /^# *include .*/ { if (ppContd != 1) {print} }
6 {if (ppContd == 1 ) print }
7 END {}

  ViewVC Help
Powered by ViewVC 1.1.22