Changeset 2006
- Timestamp:
- Oct 7, 2004, 9:51:30 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 5 edited
-
src/collections/psCollectionsErrors.dat (modified) (1 diff)
-
src/collections/psCollectionsErrors.h (modified) (2 diffs)
-
src/collections/psVector.c (modified) (3 diffs)
-
src/mathtypes/psVector.c (modified) (3 diffs)
-
test/astronomy/tst_psAstrometry.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psCollectionsErrors.dat
r1841 r2006 9 9 # 10 10 psVector_REALLOC_NULL psVectorRealloc must a given a non-NULL psVector to resize. Desired datatype unknown. 11 psVector_NOT_A_VECTOR The input psVector must have a vector dimension type. 11 12 psVector_SORT_NULL psVectorSort can not sort a NULL psVector. 12 13 psVector_UNSUPPORTED_TYPE Input psVector is an unsupported type (%d). -
trunk/psLib/src/collections/psCollectionsErrors.h
r1841 r2006 7 7 * @author Robert DeSonia, MHPCC 8 8 * 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 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 //~Start #define PS_ERRORTEXT_$1 "$2" 32 32 #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." 33 34 #define PS_ERRORTEXT_psVector_SORT_NULL "psVectorSort can not sort a NULL psVector." 34 35 #define PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE "Input psVector is an unsupported type (%d)." -
trunk/psLib/src/collections/psVector.c
r1920 r2006 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.2 7$ $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 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 96 96 } 97 97 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 98 107 byteSize = n * PSELEMTYPE_SIZEOF(type); 99 108 … … 104 113 } 105 114 115 in->type.dimen = PS_DIMEN_VECTOR; 106 116 in->type.type = type; 107 117 in->n = n; 108 109 118 return in; 110 119 } -
trunk/psLib/src/mathtypes/psVector.c
r1920 r2006 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.2 7$ $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 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 96 96 } 97 97 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 98 107 byteSize = n * PSELEMTYPE_SIZEOF(type); 99 108 … … 104 113 } 105 114 115 in->type.dimen = PS_DIMEN_VECTOR; 106 116 in->type.type = type; 107 117 in->n = n; 108 109 118 return in; 110 119 } -
trunk/psLib/test/astronomy/tst_psAstrometry.c
r2002 r2006 5 5 * @author Robert DeSonia, MHPCC 6 6 * 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 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Note:
See TracChangeset
for help on using the changeset viewer.
