IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2004, 2:36:13 PM (22 years ago)
Author:
harman
Message:

Time config files updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psMetadata.c

    r2273 r2301  
    1212*  @author Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2004-11-04 01:04:57 $
     14*  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2004-11-09 00:36:13 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434#include "psVector.h"
    3535#include "psMetadata.h"
     36#include "psLookupTable.h"
    3637#include "psString.h"
    3738#include "psAstronomyErrors.h"
     
    8081    psFree(metadataItem->comment);
    8182    psFree(metadataItem->items);
    82 
    83     if (type == PS_META_STR || type == PS_META_VEC || type == PS_META_IMG || type == PS_META_JPEG ||
    84             type == PS_META_PNG || type == PS_META_ASTROM || type == PS_META_UNKNOWN) {
     83    if (type == PS_META_STR || type == PS_META_VEC || type == PS_META_IMG || type == PS_META_LOOKUPTABLE ||
     84            type == PS_META_JPEG || type == PS_META_PNG || type == PS_META_ASTROM || type == PS_META_UNKNOWN) {
    8585        psFree(metadataItem->data.V);
    8686    }
     
    181181        metadataItem->data.V = vecOut;
    182182        break;
     183    case PS_META_LOOKUPTABLE:
     184        metadataItem->data.V = va_arg(argPtr, psLookupTable*); // Deep copy of input data not performed
     185        break;
    183186    case PS_META_IMG:
    184187    case PS_META_JPEG:
     
    187190    case PS_META_UNKNOWN:
    188191    default:
    189         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    190                 PS_ERRORTEXT_psMetadata_METATYPE_INVALID,
    191                 type);
     192        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMetadata_METATYPE_INVALID, type);
    192193        psFree(metadataItem);
    193194        metadataItem = NULL;
Note: See TracChangeset for help on using the changeset viewer.