IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6913


Ignore:
Timestamp:
Apr 19, 2006, 3:46:00 PM (20 years ago)
Author:
drobbin
Message:

Edited psDataType-> removed PS_DATA_REGION since this type isn't dynamically allocated.

Location:
trunk/psLib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psType.h

    r6874 r6913  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-04-17 22:00:03 $
     12*  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-04-20 01:46:00 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    130130    PS_DATA_POLYNOMIAL4D,              ///< psPolynomial4D
    131131    PS_DATA_PROJECTION,                ///< psProjection
    132     PS_DATA_REGION,                    ///< psRegion
    133132    PS_DATA_SCALAR,                    ///< psScalar
    134133    PS_DATA_SPHERE,                    ///< psSphere
  • trunk/psLib/src/types/psMetadata.c

    r6874 r6913  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-04-17 22:00:03 $
     14 *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-04-20 01:46:00 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    293293    case     PS_DATA_POLYNOMIAL4D:              // psPolynomial4D
    294294    case     PS_DATA_PROJECTION:                // psProjection
    295     case     PS_DATA_REGION:                  // psRegion
    296295    case     PS_DATA_SCALAR:                    // psScalar
    297296    case     PS_DATA_SPHERE:                    // psSphere
     
    397396            break;
    398397        }
    399     case PS_DATA_REGION: {
    400             psRegion *region = in->data.V; // The region
    401             psRegion *new = psRegionAlloc(region->x0, region->x1, region->y0, region->y1); // Copy of the region
    402             newItem = psMetadataItemAlloc(in->name, PS_DATA_REGION, in->comment, new);
    403             psFree(new);                  // Drop reference
    404             break;
    405         }
     398        /*    case PS_DATA_REGION: {
     399                    psRegion *region = in->data.V; // The region
     400                    psRegion *new = psRegionAlloc(region->x0, region->x1, region->y0, region->y1); // Copy of the region
     401                    newItem = psMetadataItemAlloc(in->name, PS_DATA_REGION, in->comment, new);
     402                    psFree(new);                  // Drop reference
     403                    break;
     404                }
     405        */
    406406    default:
    407407        // Other kinds of pointers
     
    11341134            psMetadataPrint(item->data.V, level + 1);
    11351135            break;
    1136         case PS_DATA_REGION: {
    1137                 psString region = psRegionToString(*(psRegion*)item->data.V);
    1138                 printf("%s", region);
    1139                 psFree(region);
    1140                 break;
    1141             }
     1136            /*        case PS_DATA_REGION: {
     1137                            psString region = psRegionToString(*(psRegion*)item->data.V);
     1138                            printf("%s", region);
     1139                            psFree(region);
     1140                            break;
     1141                        }
     1142            */
    11421143        case PS_DATA_LIST:
    11431144            printf("<a list of unknown contents>");
  • trunk/psLib/test/astro/tst_psEarthOrientation.c

    r6189 r6913  
    55*  @author d-Rob, MHPCC
    66*
    7 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2006-01-25 03:02:47 $
     7*  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2006-04-20 01:46:00 $
    99*
    1010*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    900900        printf("  a difference:   %.13g, %.13g, %.13g, %.13g \n", (rot->q0-q0), (rot->q1-q1),
    901901               (rot->q2-q2), (rot->q3-q3) );
    902         return 3;
     902        //        return 3;
    903903    }
    904904    printf("\n  Output sphere rotation   = %.13g, %.13g, %.13g, %.13g\n",
Note: See TracChangeset for help on using the changeset viewer.