Changeset 4590 for trunk/psLib/src/types
- Timestamp:
- Jul 20, 2005, 4:39:58 PM (21 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 3 edited
-
psList.h (modified) (2 diffs)
-
psMetadata.c (modified) (7 diffs)
-
psMetadata.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psList.h
r4556 r4590 7 7 * @ingroup LinkedList 8 8 * 9 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-07- 15 02:33:54$9 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-07-21 02:39:57 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 77 77 psList* list; ///< List iterator to works on 78 78 psListElem* cursor; ///< current cursor position 79 int index; ///< the index number in the list80 79 bool offEnd; ///< Iterator off the end? 80 long index; ///< the index number in the list 81 81 bool mutable; ///< Is it permissible to modify the list? 82 82 } -
trunk/psLib/src/types/psMetadata.c
r4589 r4590 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.7 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-07-21 0 1:40:10$14 * @version $Revision: 1.73 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-07-21 02:39:57 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 135 135 } 136 136 psFree(metadata->list); 137 psFree(metadata-> table);137 psFree(metadata->hash); 138 138 139 139 } … … 256 256 { 257 257 psList* list = NULL; 258 psHash* table= NULL;258 psHash* hash = NULL; 259 259 psMetadata* metadata = NULL; 260 260 … … 266 266 // Allocate metadata's internal containers 267 267 list = (psList*) psListAlloc(NULL); 268 table= (psHash*) psHashAlloc(10);268 hash = (psHash*) psHashAlloc(10); 269 269 270 270 metadata->list = list; 271 metadata-> table = table;271 metadata->hash = hash; 272 272 273 273 return metadata; … … 285 285 286 286 PS_ASSERT_PTR_NON_NULL(md,NULL); 287 PS_ASSERT_PTR_NON_NULL(md-> table,NULL);287 PS_ASSERT_PTR_NON_NULL(md->hash,NULL); 288 288 PS_ASSERT_PTR_NON_NULL(md->list,NULL); 289 289 PS_ASSERT_PTR_NON_NULL(item,NULL); 290 290 PS_ASSERT_PTR_NON_NULL(item->name,NULL); 291 291 292 mdTable = md-> table;292 mdTable = md->hash; 293 293 mdList = md->list; 294 294 key = item->name; … … 435 435 psList* mdList = md->list; 436 436 437 PS_ASSERT_PTR_NON_NULL(md-> table,NULL);438 psHash* mdTable = md-> table;437 PS_ASSERT_PTR_NON_NULL(md->hash,NULL); 438 psHash* mdTable = md->hash; 439 439 440 440 // Select removal by key or index … … 504 504 505 505 PS_ASSERT_PTR_NON_NULL(md,NULL); 506 PS_ASSERT_PTR_NON_NULL(md-> table,NULL);506 PS_ASSERT_PTR_NON_NULL(md->hash,NULL); 507 507 PS_ASSERT_PTR_NON_NULL(key,NULL); 508 508 509 mdTable = md-> table;509 mdTable = md->hash; 510 510 entry = (psMetadataItem*)psHashLookup(mdTable, key); 511 511 -
trunk/psLib/src/types/psMetadata.h
r4589 r4590 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.5 4$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-07-21 0 1:40:10$13 * @version $Revision: 1.55 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-07-21 02:39:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 93 93 { 94 94 psList* list; ///< Metadata in linked-list 95 psHash* table;///< Metadata in a hash table95 psHash* hash; ///< Metadata in a hash table 96 96 void *lock; ///< Optional lock for thread safety 97 97 }
Note:
See TracChangeset
for help on using the changeset viewer.
