Changeset 2273 for trunk/psLib/src/sysUtils/psMemory.c
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psMemory.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psMemory.c
r2210 r2273 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-1 0-27 19:35:59$10 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-11-04 01:05:00 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 100 100 { 101 101 if (ptr->refCounter < 1) { 102 psError Msg(PS_ERRORNAME_DOMAIN "memProblemCallbackDefault", false, PS_ERR_MEMORY_CORRUPTION,103 PS_ERRORTEXT_psMemory_MULTIPLE_FREE,104 ptr->id, ptr->file, ptr->lineno, file, lineno);102 psError(PS_ERR_MEMORY_CORRUPTION, false, 103 PS_ERRORTEXT_psMemory_MULTIPLE_FREE, 104 ptr->id, ptr->file, ptr->lineno, file, lineno); 105 105 } 106 106 … … 228 228 229 229 if (m == NULL) { 230 psError Msg(PS_ERRORNAME_DOMAIN "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,231 PS_ERRORTEXT_psMemory_NULL_BLOCK);230 psError(PS_ERR_MEMORY_CORRUPTION, true, 231 PS_ERRORTEXT_psMemory_NULL_BLOCK); 232 232 return 1; 233 233 } … … 235 235 if (m->refCounter == 0) { 236 236 // using an unreferenced block of memory, are you? 237 psError Msg(PS_ERRORNAME_DOMAIN "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,238 PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE,239 m->id);237 psError(PS_ERR_MEMORY_CORRUPTION, true, 238 PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE, 239 m->id); 240 240 return 1; 241 241 } 242 242 243 243 if (m->startblock != P_PS_MEMMAGIC || m->endblock != P_PS_MEMMAGIC) { 244 psError Msg(PS_ERRORNAME_DOMAIN "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,245 PS_ERRORTEXT_psMemory_UNDERFLOW,246 m->id);244 psError(PS_ERR_MEMORY_CORRUPTION, true, 245 PS_ERRORTEXT_psMemory_UNDERFLOW, 246 m->id); 247 247 return 1; 248 248 } 249 249 if (*(psPtr *)((int8_t *) (m + 1) + m->userMemorySize) != P_PS_MEMMAGIC) { 250 psError Msg(PS_ERRORNAME_DOMAIN "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,251 PS_ERRORTEXT_psMemory_OVERFLOW,252 m->id);250 psError(PS_ERR_MEMORY_CORRUPTION, true, 251 PS_ERRORTEXT_psMemory_OVERFLOW, 252 m->id); 253 253 return 1; 254 254 } … … 431 431 psMemBlock* ptr = ((psMemBlock* ) vptr) - 1; 432 432 433 psError Msg(PS_ERRORNAME_DOMAIN "psFree",PS_ERR_MEMORY_DEREF_USAGE,true,434 PS_ERRORTEXT_psMemory_MULTIPLE_FREE,435 ptr->id, ptr->file, ptr->lineno, file, lineno);433 psError(PS_ERR_MEMORY_DEREF_USAGE,true, 434 PS_ERRORTEXT_psMemory_MULTIPLE_FREE, 435 ptr->id, ptr->file, ptr->lineno, file, lineno); 436 436 437 437 return;
Note:
See TracChangeset
for help on using the changeset viewer.
