Changeset 12845 for trunk/Mars


Ignore:
Timestamp:
02/06/12 09:25:27 (13 years ago)
Author:
tbretz
Message:
Implemented 'A' as 8-bit characters; in SetPtrAddress: return an existing pointer if set already.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r12792 r12845  
    246246                    // We could use negative values to mark floats
    247247                    // otheriwse we could just cast them to int64_t?
    248                 case 'L': size = 1; break; // logical
    249                 // case 'X': size = n; break; // bits (n=number of bytes needed to contain all bits)
     248                case 'L':                 // logical
     249                case 'A':                  // char
    250250                case 'B': size = 1; break; // byte
    251251                case 'I': size = 2; break; // short
     
    254254                case 'E': size = 4; break; // float
    255255                case 'D': size = 8; break; // double
     256                // case 'X': size =  n; break; // bits (n=number of bytes needed to contain all bits)
    256257                // case 'C': size =  8; break; // complex float
    257258                // case 'M': size = 16; break; // complex double
     
    325326                switch (it->second.type)
    326327                {
     328                case 'A': gLog << "char(8)";    break;
    327329                case 'L': gLog << "bool(8)";    break;
    328330                case 'B': gLog << "byte(8)";    break;
     
    645647        }
    646648
     649        Pointers::const_iterator it = fPointers.find(name);
     650        if (it!=fPointers.end())
     651            return it->second;
     652
    647653        fGarbage.push_back(vector<char>(fTable.cols[name].size*fTable.cols[name].num));
    648654
Note: See TracChangeset for help on using the changeset viewer.