Changeset 2204 for trunk/psLib/test/collections/tst_psHash03.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psHash03.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psHash03.c
r1811 r2204 11 11 #include "psMemory.h" 12 12 #define NUM_HASH_TABLE_BUCKETS 100 13 intimGlobal = 0;14 intcurrentId = 0;13 psS32 imGlobal = 0; 14 psS32 currentId = 0; 15 15 16 16 typedef struct … … 27 27 psMemBlock **memBlocks = NULL; 28 28 psMemBlock *tmp = NULL; 29 intnumBlocks = 0;29 psS32 numBlocks = 0; 30 30 31 31 numBlocks = psMemCheckLeaks(currentId, &memBlocks, NULL); … … 36 36 if (memBlocks != NULL) { 37 37 for (tmp = *memBlocks; tmp != NULL; tmp = tmp->nextBlock) { 38 printf("%d ", ( int) tmp->id);38 printf("%d ", (psS32) tmp->id); 39 39 } 40 40 } … … 62 62 } 63 63 64 intmain()64 psS32 main() 65 65 { 66 66 psHash *myHashTable = NULL; 67 inttestStatus = true;68 inti = 0;69 intTotalKeys = 0;70 bool retVal = false;67 psS32 testStatus = true; 68 psS32 i = 0; 69 psS32 TotalKeys = 0; 70 psBool retVal = false; 71 71 ID *id = NULL; 72 72 ID *ids[4]; … … 75 75 char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL 76 76 }; 77 intmemLeaks = 0;77 psS32 memLeaks = 0; 78 78 79 79 currentId = psMemGetId();
Note:
See TracChangeset
for help on using the changeset viewer.
