Changeset 3684 for trunk/psLib/src/collections
- Timestamp:
- Apr 8, 2005, 7:58:58 AM (21 years ago)
- Location:
- trunk/psLib/src/collections
- Files:
-
- 4 edited
-
Makefile.am (modified) (1 diff)
-
psMetadata.h (modified) (2 diffs)
-
psVector.c (modified) (4 diffs)
-
psVector.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/Makefile.am
r3127 r3684 4 4 -I$(top_srcdir)/src/astronomy \ 5 5 -I$(top_srcdir)/src/dataManip \ 6 -I$(top_srcdir)/src/ fileUtils\6 -I$(top_srcdir)/src/dataIO \ 7 7 -I$(top_srcdir)/src/image \ 8 8 -I$(top_srcdir)/src/sysUtils \ -
trunk/psLib/src/collections/psMetadata.h
r3671 r3684 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-04-0 6 01:12:58$13 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-08 17:58:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 317 317 const char* comment, psPtr value); 318 318 319 320 319 /** Remove an item from metadata collection. 321 320 * -
trunk/psLib/src/collections/psVector.c
r3682 r3684 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-04-0 7 20:27:41$11 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 55 55 psVec->type.dimen = PS_DIMEN_VECTOR; 56 56 psVec->type.type = elemType; 57 psVec->nalloc = nalloc;57 *(int*)&psVec->nalloc = nalloc; 58 58 psVec->n = nalloc; 59 59 … … 81 81 // Realloc after decrementation to avoid accessing freed array elements 82 82 in->data.U8 = psRealloc(in->data.U8, nalloc * elementSize); 83 in->nalloc = nalloc;83 *(int*)&in->nalloc = nalloc; 84 84 } 85 85 … … 108 108 if (byteSize > in->nalloc*PSELEMTYPE_SIZEOF(in->type.type)) { 109 109 in->data.U8 = psRealloc(in->data.U8, byteSize); 110 in->nalloc = n;110 *(int*)&in->nalloc = n; 111 111 } 112 112 -
trunk/psLib/src/collections/psVector.h
r3476 r3684 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 3-22 21:52:49$13 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-08 17:58:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 { 34 34 psType type; ///< Type of data. 35 psU32 nalloc; ///< Total number of elements available.36 psU32 n; ///< Number of elements in use.35 int n; ///< Number of elements in use. 36 const int nalloc; ///< Total number of elements available. 37 37 38 38 union {
Note:
See TracChangeset
for help on using the changeset viewer.
