… | |
… | |
115 | |
115 | |
116 | my %main; |
116 | my %main; |
117 | |
117 | |
118 | for my $e (grep ref, @{$e->contents}) { |
118 | for my $e (grep ref, @{$e->contents}) { |
119 | if ($e->name eq "required") { |
119 | if ($e->name eq "required") { |
|
|
120 | # not used |
120 | for my $i (grep ref, @{$e->contents}) { |
121 | #for my $i (grep ref, @{$e->contents}) { |
121 | $type->{required}{$i->attr ("arch")} = $i->attr ("value"); |
122 | # $type->{required}{$i->attr ("arch")} = $i->attr ("value"); |
122 | } |
123 | #} |
123 | } elsif ($e->name eq "attribute") { |
124 | } elsif ($e->name eq "attribute") { |
124 | parse_attr $e, $type->{attr} ||= []; |
125 | parse_attr $e, $type->{attr} ||= []; |
125 | } elsif ($e->name eq "ignore") { |
126 | } elsif ($e->name eq "ignore") { |
126 | for my $i (grep ref, @{$e->contents}) { |
127 | for my $i (grep ref, @{$e->contents}) { |
127 | if ($i->name eq "ignore_list") { |
128 | if ($i->name eq "ignore_list") { |
… | |
… | |
199 | |
200 | |
200 | for (grep ref, @{$spell->root->contents}) { |
201 | for (grep ref, @{$spell->root->contents}) { |
201 | $spell{$_->attr ("id")} = $_->attr ("name"); |
202 | $spell{$_->attr ("id")} = $_->attr ("name"); |
202 | } |
203 | } |
203 | |
204 | |
204 | dump_hash ["BITMASK", "LIST", "IGNORE_LIST", "DEFAULT_ATTR", "TYPE", "ATTR0", "ATTR", "TYPENAME", "SPELL"], |
205 | dump_hash ["BITMASK", "LIST", "IGNORE_LIST", "DEFAULT_ATTR", "TYPE", "ATTR", "TYPENAME", "SPELL"], |
205 | [\%bitmask, \%list, \%ignore_list, \%default_attr, \%type, \@attr0, \%attr, \%typename, \%spell]; |
206 | [\%bitmask, \%list, \%ignore_list, \%default_attr, \%type, \%attr, \%typename, \%spell]; |
206 | |
207 | |
207 | print <<EOF; |
208 | print <<EOF; |
208 | |
209 | |
209 | =head1 AUTHOR |
210 | =head1 AUTHOR |
210 | |
211 | |