… | |
… | |
1083 | |
1083 | |
1084 | my $i = 0; |
1084 | my $i = 0; |
1085 | my $check_cnts = 0; |
1085 | my $check_cnts = 0; |
1086 | my $check_true = 0; |
1086 | my $check_true = 0; |
1087 | for my $match (@matchar) { |
1087 | for my $match (@matchar) { |
1088 | $check_cnts = 0 if $i % 3 == 0; |
1088 | if ($i % 3 == 0) { |
|
|
1089 | $check_cnts = 0; |
|
|
1090 | $check_true = 0; |
|
|
1091 | } |
1089 | |
1092 | |
1090 | if ($match =~ m/^\s*$/) { |
1093 | if ($match =~ m/^\s*$/) { |
1091 | $i++; |
1094 | $i++; |
1092 | next; |
1095 | next; |
1093 | } |
1096 | } |
… | |
… | |
1103 | $thing->arch->name eq $match |
1106 | $thing->arch->name eq $match |
1104 | and $check_true++; |
1107 | and $check_true++; |
1105 | } |
1108 | } |
1106 | $i++; |
1109 | $i++; |
1107 | } |
1110 | } |
|
|
1111 | #d# warn "CHECK $check_true | $check_cnts | [".(join ',', @matchar).":".join (",", ($thing->name, $thing->title, $thing->arch->name))."\n"; |
1108 | if ($check_true && $check_cnts == $check_true) { |
1112 | if ($check_true && $check_cnts == $check_true) { |
1109 | return 1; |
1113 | return 1; |
1110 | } |
1114 | } |
1111 | return 0; |
1115 | return 0; |
1112 | } |
1116 | } |