IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 12, 2005, 3:04:48 PM (21 years ago)
Author:
eugene
Message:

substantial work to enable mode and format selections for DVO:image and DVO:secfilt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/generate

    r4023 r5014  
    3535        ($key, $value) = split (" ", $line, 2);
    3636       
     37        # strip white space from the following
     38        if ($key eq "TYPE")    { ($value) = $value =~ m|\s*(\S+)\s*|; }
     39        if ($key eq "SIZE")    { ($value) = $value =~ m|\s*(\S+)\s*|; }
     40        if ($key eq "STRUCT")  { ($value) = $value =~ m|\s*(\S+)\s*|; }
     41        if ($key eq "EXTNAME") { ($value) = $value =~ m|\s*(\S+)\s*|; }
     42
    3743        &set_keypair ($key, $value);
    3844
    3945        # there are used internally (not just a replacement)
    40         if ($key eq "TYPE")   { $TYPE = $value;   }
    41         if ($key eq "SIZE")   { $SIZE = $value;   }
    42         if ($key eq "STRUCT") { $STRUCT = $value; }
     46        if ($key eq "TYPE")    { $TYPE = $value;   }
     47        if ($key eq "SIZE")    { $SIZE = $value;   }
     48        if ($key eq "STRUCT")  { $STRUCT = $value; }
    4349
    4450        # not a simple key/value entry
     
    5460        }
    5561    }
     62    $Nexpect = 0;
    5663    if ($TYPE eq "BINTABLE") { $Nexpect = &count_bintablesize; }
    5764    if ($TYPE eq "TABLE")    { $Nexpect = &count_tablesize;    }
     65    if (! $Nexpect) { die "missing valid TYPE\n"; }
    5866    if ($Nexpect != $SIZE) { die "size mismatch: $Nexpect vs $SIZE\n"; }
    5967}
Note: See TracChangeset for help on using the changeset viewer.