Changeset 2625 for trunk/psLib/src/collections/psHash.c
- Timestamp:
- Dec 3, 2004, 4:43:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psHash.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psHash.c
r2621 r2625 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-12-04 0 0:04:33$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-12-04 02:43:39 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 159 159 160 160 /****************************************************************************** 161 psHashFree(table, itemFree): This procedure deallocates the specified hash161 hashFree(table): This procedure deallocates the specified hash 162 162 table. It loops through each bucket, and calls hashBucketFree() on that 163 163 bucket. … … 380 380 if (table == NULL) { 381 381 psError(PS_ERR_BAD_PARAMETER_NULL, true, 382 PS_ERRORTEXT_psHash_TABLE_NULL); 383 return NULL; 384 } 385 if (key == NULL) { 386 psError(PS_ERR_BAD_PARAMETER_NULL, true, 382 387 PS_ERRORTEXT_psHash_KEY_NULL); 383 388 return NULL; 384 389 } 385 if (key == NULL) {386 psError(PS_ERR_BAD_PARAMETER_NULL, true,387 PS_ERRORTEXT_psHash_TABLE_NULL);388 return NULL;389 }390 390 391 391 return doHashWork(table, key, NULL, 0); … … 393 393 394 394 /****************************************************************************** 395 psHashRemove(table, key , itemFree): this procedure, which is part of the395 psHashRemove(table, key): this procedure, which is part of the 396 396 public API, removes the specified key from the hash table. 397 397 Inputs: 398 398 table: a hash table 399 399 key: the key to remove 400 itemFree: a function pointer401 400 Return: 402 401 boolean value defining success or failure … … 425 424 retVal = false; 426 425 } 426 427 427 return retVal; 428 428 }
Note:
See TracChangeset
for help on using the changeset viewer.
