diff --git a/scripts/intsym.pl b/scripts/intsym.pl index 04326b6a..86dbf694 100644 --- a/scripts/intsym.pl +++ b/scripts/intsym.pl @@ -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}}); } } diff --git a/src/intsym.h b/src/intsym.h index 1959ced7..7e125281 100644 --- a/src/intsym.h +++ b/src/intsym.h @@ -8,6 +8,7 @@ #define pnts INT123_pnts #define catchsignal INT123_catchsignal #define safe_realloc INT123_safe_realloc +#define safer_realloc INT123_safer_realloc #define compat_strdup INT123_compat_strdup #define compat_getenv INT123_compat_getenv #define compat_open INT123_compat_open