From: crouzet Date: Tue, 25 Oct 2005 14:16:48 +0000 (+0000) Subject: protected keyword treatment X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=393ce485ed3ca950261886f8bbd351412c0a9d9c;p=tools%2Fhxx2salome.git protected keyword treatment --- diff --git a/scripts/parse1.awk b/scripts/parse1.awk index f1d085f..8d688d2 100644 --- a/scripts/parse1.awk +++ b/scripts/parse1.awk @@ -3,9 +3,10 @@ BEGIN { public=0 } # we want to extract each function that is public and that does'nt contain -# the patterns : public, private, // (comments), { and } +# the patterns : public, protected, private, // (comments), { and } public == 1 && $1 !~ /public/ && +$1 !~ /protected/ && $1 !~ /private/ && $1 !~ /\/\/*/ && $1 !~ /{|}/ { @@ -18,5 +19,6 @@ $1 !~ /{|}/ { $1 == "class" && $0 !~ /;/ {public=1} # we test matching against /;/ to get rid of forward declaration $1 ~ /public/ {public=1} +$1 ~ /protected/ {public=0} $1 ~ /private/ {public=0} $1 ~ /}/ {public=0}