ioscript/ioscript: allow positions to be redefined

For that purpose, we reset the mapping each time a new set of definitions
is encountered.
This commit is contained in:
Werner Almesberger 2012-12-17 14:41:23 -03:00
parent 8816dcfa3c
commit b4530ffc4d
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ while (<>) {
s/#.*//;
next if /^\s*$/;
if (/^\S+,(\S+,)*\S+/) {
@pos = ();
for (split /,/) {
die "unknown bit \"$_\"" unless defined $bit{$_};
push(@pos, $_);