History

checkpatch: ensure cast type is unique in the context parser

Ensure the cast type is unique in the context parser, we do not want them to detect as a comma ','.

Andy Whitcroft committed 14 years ago

Commit addcdce1 parent c81769f1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -1032,7 +1032,7 @@ sub annotate_values { · 1031 unmodified lines
1032 } elsif ($cur =~ /^(\(\s*$Type\s*)\)/ && $av_pending eq '_') {1032 } elsif ($cur =~ /^(\(\s*$Type\s*)\)/ && $av_pending eq '_') {
1033 print "CAST($1)\n" if ($dbg_values > 1);1033 print "CAST($1)\n" if ($dbg_values > 1);
1034 push(@av_paren_type, $type);1034 push(@av_paren_type, $type);
1035 $type = 'C';1035 $type = 'c';
1036 1036
1037 } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) {1037 } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) {
1038 print "DECLARE($1)\n" if ($dbg_values > 1);1038 print "DECLARE($1)\n" if ($dbg_values > 1);