IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2006


Ignore:
Timestamp:
Oct 7, 2004, 9:51:30 AM (22 years ago)
Author:
desonia
Message:

* empty log message *

Location:
trunk/psLib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psCollectionsErrors.dat

    r1841 r2006  
    99#
    1010psVector_REALLOC_NULL                  psVectorRealloc must a given a non-NULL psVector to resize.  Desired datatype unknown.
     11psVector_NOT_A_VECTOR                  The input psVector must have a vector dimension type.
    1112psVector_SORT_NULL                     psVectorSort can not sort a NULL psVector.
    1213psVector_UNSUPPORTED_TYPE              Input psVector is an unsupported type (%d).
  • trunk/psLib/src/collections/psCollectionsErrors.h

    r1841 r2006  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-21 23:15:04 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-07 19:51:30 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3131//~Start #define PS_ERRORTEXT_$1 "$2"
    3232#define PS_ERRORTEXT_psVector_REALLOC_NULL "psVectorRealloc must a given a non-NULL psVector to resize.  Desired datatype unknown."
     33#define PS_ERRORTEXT_psVector_NOT_A_VECTOR "The input psVector must have a vector dimension type."
    3334#define PS_ERRORTEXT_psVector_SORT_NULL "psVectorSort can not sort a NULL psVector."
    3435#define PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE "Input psVector is an unsupported type (%d)."
  • trunk/psLib/src/collections/psVector.c

    r1920 r2006  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-09-28 23:26:48 $
     12*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-07 19:51:30 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9696    }
    9797
     98    if (in->type.dimen !=  PS_DIMEN_VECTOR &&
     99            in->type.dimen !=  PS_DIMEN_TRANSV) {
     100        psFree(in);
     101        psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorRecycle",
     102                   PS_ERR_BAD_PARAMETER_TYPE, true,
     103                   PS_ERRORTEXT_psVector_NOT_A_VECTOR);
     104        return NULL;
     105    }
     106
    98107    byteSize = n * PSELEMTYPE_SIZEOF(type);
    99108
     
    104113    }
    105114
     115    in->type.dimen = PS_DIMEN_VECTOR;
    106116    in->type.type = type;
    107117    in->n = n;
    108 
    109118    return in;
    110119}
  • trunk/psLib/src/mathtypes/psVector.c

    r1920 r2006  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-09-28 23:26:48 $
     12*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-07 19:51:30 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9696    }
    9797
     98    if (in->type.dimen !=  PS_DIMEN_VECTOR &&
     99            in->type.dimen !=  PS_DIMEN_TRANSV) {
     100        psFree(in);
     101        psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorRecycle",
     102                   PS_ERR_BAD_PARAMETER_TYPE, true,
     103                   PS_ERRORTEXT_psVector_NOT_A_VECTOR);
     104        return NULL;
     105    }
     106
    98107    byteSize = n * PSELEMTYPE_SIZEOF(type);
    99108
     
    104113    }
    105114
     115    in->type.dimen = PS_DIMEN_VECTOR;
    106116    in->type.type = type;
    107117    in->n = n;
    108 
    109118    return in;
    110119}
  • trunk/psLib/test/astronomy/tst_psAstrometry.c

    r2002 r2006  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2004-10-07 19:17:23 $
     7 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2004-10-07 19:51:30 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Note: See TracChangeset for help on using the changeset viewer.