1
0
mirror of http://mpg123.de/trunk/.git synced 2025-07-31 13:24:22 +03:00

intsym: update script for C99 comments, adding safer_realloc

git-svn-id: svn://scm.orgis.org/mpg123/trunk@4908 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2021-05-29 12:27:39 +00:00
parent 769990c88f
commit 3cb79a2753
2 changed files with 4 additions and 1 deletions

View File

@ -62,8 +62,10 @@ for my $i (@instances)
if(/^([^\s\(#][^\(]*)\s\*?([a-z][a-z_0-9]+)\s*\(/)
{
# Skip preprocessing/comment stuff and official API.
unless($1 =~ '^#' or $1 =~ '/\*' or $2 =~ $apiex or $1 =~ /\bstatic\b/)
unless($1 =~ '^#' or $1 =~ '/[/\*]' or $2 =~ $apiex or $1 =~ /\bstatic\b/)
{
die "second definition of $2 in $header\n"
if grep {$_ eq $2} @symbols;
push(@symbols, $2) unless grep {$_ eq $2} (keys %{$i->{conditional}});
}
}