From 393ce485ed3ca950261886f8bbd351412c0a9d9c Mon Sep 17 00:00:00 2001 From: crouzet Date: Tue, 25 Oct 2005 14:16:48 +0000 Subject: [PATCH] protected keyword treatment --- scripts/parse1.awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} -- 2.39.2