Correct detection of group end in map file when testing symbol presence

Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
Richard Levitte 2016-09-06 00:48:13 +02:00
parent 7e5b8b93f2
commit 77a42b5f17

View file

@ -69,6 +69,7 @@ foreach my $libname (@libnames) {
map { s|;||; s|\s+||g; $_ }
grep { $in_global = 1 if m|global:|;
$in_global = 0 if m|local:|;
$in_global = 0 if m|\}|;
$in_global && m|;|; } @def_lines;
note "Number of lines in \@nm_lines after massaging: ", scalar @nm_lines;