#
################################################################################
#
-# $Revision: 13 $
+# $Revision: 15 $
# $Author: mhx $
-# $Date: 2005/01/31 08:10:54 +0100 $
+# $Date: 2005/06/24 19:01:33 +0200 $
#
################################################################################
#
sub trim_arg
{
my $in = shift;
+ my $remove = join '|', qw( NN NULLOK );
$in eq '...' and return ($in);
local $_ = $in;
my $id;
-
+
s/[*()]/ /g;
s/\[[^\]]*\]/ /g;
s/\b(?:auto|const|extern|inline|register|static|volatile|restrict)\b//g;
+ s/\b(?:$remove)\b//;
s/^\s*//; s/\s*$//;
if( /^\b(?:struct|union|enum)\s+\w+(?:\s+(\w+))?$/ ) {
# these don't matter at all
s/\b(?:auto|extern|inline|register|static|volatile|restrict)\b//g;
+ s/\b(?:$remove)\b//;
s/(?=<\*)\s+(?=\*)//g;
s/\s*(\*+)\s*/ $1 /g;