Back to home page

MITgcm

 
 

    


File indexing completed on 2018-03-02 18:45:07 UTC

view on githubraw file Latest commit 8702af1f on 2012-09-20 23:12:48 UTC
8702af1f36 Patr*0001 #extract CPP directives with continuation lines from the input. 
                0002 BEGIN { ppContd = 0} 
                0003 /^# *ifdef .*\\$/ || /^# *ifndef .*\\$/ || /^# *endif.*\\$/ || /^# *if .*\\$/ || /^# *else.*\\$/ || /^# *define.*\\$/ { ppContd=1 }
                0004 !/^.*\\$/ { if (ppContd ==1) {print; ppContd=0} }
                0005 /^# *ifdef .*/ || /^# *ifndef .*/ || /^# *endif.*/ || /^# *if .*/ || /^# *else.*/ || /^# *define.*/ || /^# *include .*/ { if (ppContd != 1) {print} }
                0006 {if (ppContd == 1 ) print }
                0007 END {}