diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-04-28 15:29:08 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-04-28 15:29:08 +0000 |
commit | 12b696ac5ff8f94fa38b5b5fd67c6df809273025 (patch) | |
tree | f56cf44b1163dce3eca7f18d5fc8f7f6fe062a89 | |
parent | 98512d7845937c3a600e24ef4cc3cb65dd52cb59 (diff) | |
download | perl-MDK-Common-12b696ac5ff8f94fa38b5b5fd67c6df809273025.tar perl-MDK-Common-12b696ac5ff8f94fa38b5b5fd67c6df809273025.tar.gz perl-MDK-Common-12b696ac5ff8f94fa38b5b5fd67c6df809273025.tar.bz2 perl-MDK-Common-12b696ac5ff8f94fa38b5b5fd67c6df809273025.tar.xz perl-MDK-Common-12b696ac5ff8f94fa38b5b5fd67c6df809273025.zip |
ignore multiply defined functions
-rwxr-xr-x | perl_checker_fake_packages/gen.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl_checker_fake_packages/gen.pl b/perl_checker_fake_packages/gen.pl index 4d18665..eec88b6 100755 --- a/perl_checker_fake_packages/gen.pl +++ b/perl_checker_fake_packages/gen.pl @@ -128,8 +128,8 @@ our \@ISA = qw(); foreach (@multiples) { my $a = split /,/, $_->[1]; $args == -1 and $args = $a; - #- skip multiply defined functions that have different numbers of arguments - $args != $a and goto skip_it; + #- ignore multiply defined functions that have different numbers of arguments + $args != $a and $multiples[0][1] = ' {}'; } my $i; $multiples[0][1] =~ s/\$_(\w+)/'$_DUMMY'.$i++/ge; @@ -137,7 +137,6 @@ our \@ISA = qw(); } else { push @ok, @multiples; } - skip_it: } print "sub Gtk2::$_->[0]$_->[1]\n" foreach @ok; |