/[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.1 - (show annotations) (download)
Mon May 7 18:25:48 2007 UTC (19 years, 6 months ago) by utke
Branch: MAIN
updated conversion

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