Changeset 1842
- Timestamp:
- Sep 21, 2004, 1:17:53 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
collections/psBitSet.c (modified) (6 diffs)
-
collections/psHash.c (modified) (5 diffs)
-
types/psBitSet.c (modified) (6 diffs)
-
types/psHash.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psBitSet.c
r1807 r1842 11 11 * @author Robert DeSonia, MHPCC 12 12 * 13 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-09- 14 20:01:52 $13 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-09-21 23:17:52 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 94 94 } 95 95 96 psBitSet* psBitSetSet(psBitSet* inBitSet, int bit) 96 psBitSet* psBitSetSet(psBitSet* inBitSet, 97 int bit) 97 98 { 98 99 char *byte = NULL; … … 118 119 } 119 120 120 psBitSet* psBitSetClear(psBitSet* inBitSet, int bit) 121 psBitSet* psBitSetClear(psBitSet* inBitSet, 122 int bit) 121 123 { 122 124 char *byte = NULL; … … 142 144 } 143 145 144 bool psBitSetTest(const psBitSet* inBitSet, int bit) 146 bool psBitSetTest(const psBitSet* inBitSet, 147 int bit) 145 148 { 146 149 char *byte = NULL; … … 165 168 } 166 169 167 psBitSet* psBitSetOp(psBitSet* outBitSet, const psBitSet* restrict inBitSet1, char *operator, 170 psBitSet* psBitSetOp(psBitSet* outBitSet, 171 const psBitSet* restrict inBitSet1, 172 char *operator, 168 173 const psBitSet* restrict inBitSet2) 169 174 { … … 279 284 } 280 285 281 psBitSet* psBitSetNot(psBitSet* outBitSet, const psBitSet* restrict inBitSet) 286 psBitSet* psBitSetNot(psBitSet* outBitSet, 287 const psBitSet* restrict inBitSet) 282 288 { 283 289 if (inBitSet == NULL) { -
trunk/psLib/src/collections/psHash.c
r1841 r1842 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-09-21 23:1 5:04$13 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-09-21 23:17:53 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 84 84 the new hash bucket. 85 85 *****************************************************************************/ 86 static psHashBucket* hashBucketAlloc(const char *key, void *data, psHashBucket* next) 86 static psHashBucket* hashBucketAlloc(const char *key, 87 void *data, 88 psHashBucket* next) 87 89 { 88 90 // Allocate memory for the new hash bucket. … … 210 212 there is little common code between those functions. 211 213 *****************************************************************************/ 212 static void *doHashWork(psHash* table, const char *key, void *data, bool remove 214 static void *doHashWork(psHash* table, 215 const char *key, 216 void *data, bool remove 213 217 ) 214 218 { … … 340 344 boolean value defining success or failure 341 345 *****************************************************************************/ 342 bool psHashAdd(psHash* table, const char *key, void *data) 346 bool psHashAdd(psHash* table, 347 const char *key, 348 void *data) 343 349 { 344 350 if (table == NULL) { … … 403 409 boolean value defining success or failure 404 410 *****************************************************************************/ 405 bool psHashRemove(psHash* table, const char *key) 411 bool psHashRemove(psHash* table, 412 const char *key) 406 413 { 407 414 void *data = NULL; -
trunk/psLib/src/types/psBitSet.c
r1807 r1842 11 11 * @author Robert DeSonia, MHPCC 12 12 * 13 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-09- 14 20:01:52 $13 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-09-21 23:17:52 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 94 94 } 95 95 96 psBitSet* psBitSetSet(psBitSet* inBitSet, int bit) 96 psBitSet* psBitSetSet(psBitSet* inBitSet, 97 int bit) 97 98 { 98 99 char *byte = NULL; … … 118 119 } 119 120 120 psBitSet* psBitSetClear(psBitSet* inBitSet, int bit) 121 psBitSet* psBitSetClear(psBitSet* inBitSet, 122 int bit) 121 123 { 122 124 char *byte = NULL; … … 142 144 } 143 145 144 bool psBitSetTest(const psBitSet* inBitSet, int bit) 146 bool psBitSetTest(const psBitSet* inBitSet, 147 int bit) 145 148 { 146 149 char *byte = NULL; … … 165 168 } 166 169 167 psBitSet* psBitSetOp(psBitSet* outBitSet, const psBitSet* restrict inBitSet1, char *operator, 170 psBitSet* psBitSetOp(psBitSet* outBitSet, 171 const psBitSet* restrict inBitSet1, 172 char *operator, 168 173 const psBitSet* restrict inBitSet2) 169 174 { … … 279 284 } 280 285 281 psBitSet* psBitSetNot(psBitSet* outBitSet, const psBitSet* restrict inBitSet) 286 psBitSet* psBitSetNot(psBitSet* outBitSet, 287 const psBitSet* restrict inBitSet) 282 288 { 283 289 if (inBitSet == NULL) { -
trunk/psLib/src/types/psHash.c
r1841 r1842 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-09-21 23:1 5:04$13 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-09-21 23:17:53 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 84 84 the new hash bucket. 85 85 *****************************************************************************/ 86 static psHashBucket* hashBucketAlloc(const char *key, void *data, psHashBucket* next) 86 static psHashBucket* hashBucketAlloc(const char *key, 87 void *data, 88 psHashBucket* next) 87 89 { 88 90 // Allocate memory for the new hash bucket. … … 210 212 there is little common code between those functions. 211 213 *****************************************************************************/ 212 static void *doHashWork(psHash* table, const char *key, void *data, bool remove 214 static void *doHashWork(psHash* table, 215 const char *key, 216 void *data, bool remove 213 217 ) 214 218 { … … 340 344 boolean value defining success or failure 341 345 *****************************************************************************/ 342 bool psHashAdd(psHash* table, const char *key, void *data) 346 bool psHashAdd(psHash* table, 347 const char *key, 348 void *data) 343 349 { 344 350 if (table == NULL) { … … 403 409 boolean value defining success or failure 404 410 *****************************************************************************/ 405 bool psHashRemove(psHash* table, const char *key) 411 bool psHashRemove(psHash* table, 412 const char *key) 406 413 { 407 414 void *data = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
