Changeset 2621
- Timestamp:
- Dec 3, 2004, 2:04:33 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
collections/psHash.c (modified) (4 diffs)
-
types/psHash.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psHash.c
r2273 r2621 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-1 1-04 01:04:57$13 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-12-04 00:04:33 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 332 332 333 333 /****************************************************************************** 334 psHash Insert(table, key, data, itemFree): this procedure, which is part of334 psHashAdd(table, key, data): this procedure, which is part of 335 335 the public API, inserts a new key/data pair into the hash table. 336 336 Inputs: … … 338 338 key: the key to use 339 339 data: the data to insert. 340 itemFree: a function pointer341 340 Return: 342 341 boolean value defining success or failure … … 348 347 if (table == NULL) { 349 348 psError(PS_ERR_BAD_PARAMETER_NULL, true, 349 PS_ERRORTEXT_psHash_TABLE_NULL); 350 return false; 351 } 352 if (key == NULL) { 353 psError(PS_ERR_BAD_PARAMETER_NULL, true, 350 354 PS_ERRORTEXT_psHash_KEY_NULL); 351 355 return false; 352 356 } 353 if ( key== NULL) {354 psError(PS_ERR_BAD_PARAMETER_NULL, true, 355 PS_ERRORTEXT_psHash_ TABLE_NULL);357 if (data == NULL) { 358 psError(PS_ERR_BAD_PARAMETER_NULL, true, 359 PS_ERRORTEXT_psHash_DATA_NULL); 356 360 return false; 357 }358 if (data == NULL) {359 psError(PS_ERR_BAD_PARAMETER_NULL, true,360 PS_ERRORTEXT_psHash_DATA_NULL);361 361 } 362 362 -
trunk/psLib/src/types/psHash.c
r2273 r2621 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-1 1-04 01:04:57$13 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-12-04 00:04:33 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 332 332 333 333 /****************************************************************************** 334 psHash Insert(table, key, data, itemFree): this procedure, which is part of334 psHashAdd(table, key, data): this procedure, which is part of 335 335 the public API, inserts a new key/data pair into the hash table. 336 336 Inputs: … … 338 338 key: the key to use 339 339 data: the data to insert. 340 itemFree: a function pointer341 340 Return: 342 341 boolean value defining success or failure … … 348 347 if (table == NULL) { 349 348 psError(PS_ERR_BAD_PARAMETER_NULL, true, 349 PS_ERRORTEXT_psHash_TABLE_NULL); 350 return false; 351 } 352 if (key == NULL) { 353 psError(PS_ERR_BAD_PARAMETER_NULL, true, 350 354 PS_ERRORTEXT_psHash_KEY_NULL); 351 355 return false; 352 356 } 353 if ( key== NULL) {354 psError(PS_ERR_BAD_PARAMETER_NULL, true, 355 PS_ERRORTEXT_psHash_ TABLE_NULL);357 if (data == NULL) { 358 psError(PS_ERR_BAD_PARAMETER_NULL, true, 359 PS_ERRORTEXT_psHash_DATA_NULL); 356 360 return false; 357 }358 if (data == NULL) {359 psError(PS_ERR_BAD_PARAMETER_NULL, true,360 PS_ERRORTEXT_psHash_DATA_NULL);361 361 } 362 362
Note:
See TracChangeset
for help on using the changeset viewer.
