From 7905f82ddcfbf16a6c0f7c9c24e1b0371a823aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 11 Jan 2009 21:51:27 +0000 Subject: [PATCH] make aware of DEPRECATED git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24298 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/make-proto.pl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cf/make-proto.pl b/cf/make-proto.pl index b89ef7906..f62fb4cd0 100644 --- a/cf/make-proto.pl +++ b/cf/make-proto.pl @@ -100,13 +100,16 @@ while(<>) { s/^\s*//; s/\s*$//; s/\s+/ /g; - if($_ =~ /\)$/){ + if($_ =~ /\)$/ or $_ =~ /DEPRECATED$/){ if(!/^static/ && !/^PRIVATE/){ - if(/(.*)(__attribute__\s?\(.*\))/) { - $attr = $2; + $attr = ""; + if(m/(.*)(__attribute__\s?\(.*\))/) { + $attr .= " $2"; + $_ = $1; + } + if(m/(.*)\s(\w+DEPRECATED)/) { + $attr .= " $2"; $_ = $1; - } else { - $attr = ""; } # remove outer () s/\s*\(/