Changeset 390
- Timestamp:
- Apr 2, 2004, 4:36:53 AM (22 years ago)
- Location:
- trunk/archive/pslib/src/Utils
- Files:
-
- 3 edited
-
dlist.c (modified) (2 diffs)
-
tst_memory.c (modified) (5 diffs)
-
tst_trace.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/dlist.c
r267 r390 187 187 188 188 if (which < 0 || which >= list->n) { // out of bounds 189 psError(__func__, "Index %d is not in range [0..%d] for list 0x%x", which, list->n, list);189 psError(__func__, PS_ERR_BAD_INDEX, 1, "Index %d is not in range [0..%d] for list 0x%x", which, list->n, list); 190 190 return NULL; 191 191 } … … 281 281 { 282 282 if (where != PS_DLIST_HEAD && where != PS_DLIST_TAIL) { 283 psError(__func__, "Invalid where argument: %d; assuming PS_DLIST_HEAD", where);283 psError(__func__, PS_ERR_UNKNOWN, 1, "Invalid where argument: %d; assuming PS_DLIST_HEAD", where); 284 284 where = PS_DLIST_HEAD; 285 285 } -
trunk/archive/pslib/src/Utils/tst_memory.c
r267 r390 25 25 static void *my_MemExhaustedCB(size_t size) 26 26 { 27 psError(__func__, "Bye bye sweet world\n");27 psError(__func__, ENOMEM, 1, "Bye bye sweet world\n"); 28 28 29 29 return NULL; … … 74 74 str = psRealloc(str, 20); 75 75 psFree(str); 76 #if 176 #if 0 77 77 /* 78 78 * An illegal double-free … … 81 81 #endif 82 82 83 #if 183 #if 0 84 84 /* 85 85 * Free memory not allocated with psAlloc … … 88 88 #endif 89 89 90 #if 090 #if 1 91 91 /* 92 92 * Ask for more memory than we can get … … 137 137 */ 138 138 if(psMemCheckCorruption(1)) { 139 psError(__func__, "Detected corrupted memory\n\n");139 psError(__func__, PS_ERR_MEMORY_CORRUPTION, 1, "Detected corrupted memory\n\n"); 140 140 } 141 141 /* -
trunk/archive/pslib/src/Utils/tst_trace.c
r267 r390 13 13 14 14 if(psMemCheckCorruption(0)) { 15 psError(__func__, "Detected corrupted memory\n\n");15 psError(__func__, PS_ERR_MEMORY_CORRUPTION, PS_NEW_ERROR, "Detected corrupted memory\n"); 16 16 } 17 17
Note:
See TracChangeset
for help on using the changeset viewer.
