Additional sanity check.

This commit is contained in:
Dr. Stephen Henson 2008-03-19 14:18:36 +00:00
parent ab12438030
commit 041e7f2eee

View File

@ -14,6 +14,8 @@ while(<NUMIN>)
$Cname =~ s/^X//;
if (defined($nidn{$mynum}))
{ die "$ARGV[1]:$o:There's already an object with NID ",$mynum," on line ",$order{$mynum},"\n"; }
if (defined($nid{$Cname}))
{ die "$ARGV[1]:$o:There's already an object with name ",$mynum," on line ",$order{$nid{$Cname}},"\n"; }
$nid{$Cname} = $mynum;
$nidn{$mynum} = $Cname;
$order{$mynum} = $o;