Changeset 566 for trunk/archive/pslib/src/Utils/tst_memory.c
- Timestamp:
- May 3, 2004, 3:09:20 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/tst_memory.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/tst_memory.c
r446 r566 9 9 * My callbacks 10 10 */ 11 static intmy_MemAllocateCB(const psMemBlock *ptr)11 static long my_MemAllocateCB(const psMemBlock *ptr) 12 12 { 13 13 static int incr = 0; // "p_psMemAllocateID += incr" … … 54 54 * Install my callbacks 55 55 */ 56 (void)psMemAllocate SetCB(my_MemAllocateCB);57 default_MemProblemCB = psMemProblem SetCB(my_MemProblemCB);58 (void)psMemExhausted SetCB(my_MemExhaustedCB);56 (void)psMemAllocateCBSet(my_MemAllocateCB); 57 default_MemProblemCB = psMemProblemCBSet(my_MemProblemCB); 58 (void)psMemExhaustedCBSet(my_MemExhaustedCB); 59 59 /* 60 60 * Request callback on first allocation 61 61 */ 62 (void)psMem SetAllocateID(1);62 (void)psMemAllocateIDSet(1); 63 63 /* 64 64 * Start allocating
Note:
See TracChangeset
for help on using the changeset viewer.
