Skip to content

Commit 66925c2

Browse files
karel-msjaeckel
authored andcommitted
Fix helper.pl. [skip ci]
Fix matching of other uses of a descriptor type, besides their declaration.
1 parent 25e93e3 commit 66925c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

helper.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ sub check_descriptor {
108108
my @descriptors;
109109
find({ wanted => sub { push @src, $_ if $_ =~ /\.c$/ }, no_chdir=>1 }, "./src/${which}/");
110110
for my $f (@src) {
111-
my @n = map { my $x = $_; $x =~ s/^.*?ltc_${what}_descriptor\s+(\S+).*$/$1/; $x } grep { $_ =~ /ltc_${what}_descriptor/ } split /\n/, read_file($f);
111+
my @n = map { my $x = $_; $x =~ s/^.*?ltc_${what}_descriptor\s+(\S+).*$/$1/; $x } grep { $_ =~ /^[^()]*ltc_${what}_descriptor/ } split /\n/, read_file($f);
112112
push @descriptors, @n if @n;
113113
}
114114
my $fails = 0;

0 commit comments

Comments
 (0)