mirror of
http://mpg123.de/trunk/.git
synced 2025-08-07 21:02:55 +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:
@@ -62,8 +62,10 @@ for my $i (@instances)
|
|||||||
if(/^([^\s\(#][^\(]*)\s\*?([a-z][a-z_0-9]+)\s*\(/)
|
if(/^([^\s\(#][^\(]*)\s\*?([a-z][a-z_0-9]+)\s*\(/)
|
||||||
{
|
{
|
||||||
# Skip preprocessing/comment stuff and official API.
|
# 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}});
|
push(@symbols, $2) unless grep {$_ eq $2} (keys %{$i->{conditional}});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#define pnts INT123_pnts
|
#define pnts INT123_pnts
|
||||||
#define catchsignal INT123_catchsignal
|
#define catchsignal INT123_catchsignal
|
||||||
#define safe_realloc INT123_safe_realloc
|
#define safe_realloc INT123_safe_realloc
|
||||||
|
#define safer_realloc INT123_safer_realloc
|
||||||
#define compat_strdup INT123_compat_strdup
|
#define compat_strdup INT123_compat_strdup
|
||||||
#define compat_getenv INT123_compat_getenv
|
#define compat_getenv INT123_compat_getenv
|
||||||
#define compat_open INT123_compat_open
|
#define compat_open INT123_compat_open
|
||||||
|
Reference in New Issue
Block a user