IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2004, 3:05:00 PM (22 years ago)
Author:
desonia
Message:

changed the psError signature to match SDRS. Also made misc. cleanups as
I was combing the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psMemory.c

    r2210 r2273  
    88*  @author Robert Lupton, Princeton University
    99*
    10 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-10-27 19:35:59 $
     10*  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-11-04 01:05:00 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    100100{
    101101    if (ptr->refCounter < 1) {
    102         psErrorMsg(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);
    105105    }
    106106
     
    228228
    229229    if (m == NULL) {
    230         psErrorMsg(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);
    232232        return 1;
    233233    }
     
    235235    if (m->refCounter == 0) {
    236236        // using an unreferenced block of memory, are you?
    237         psErrorMsg(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);
    240240        return 1;
    241241    }
    242242
    243243    if (m->startblock != P_PS_MEMMAGIC || m->endblock != P_PS_MEMMAGIC) {
    244         psErrorMsg(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);
    247247        return 1;
    248248    }
    249249    if (*(psPtr *)((int8_t *) (m + 1) + m->userMemorySize) != P_PS_MEMMAGIC) {
    250         psErrorMsg(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);
    253253        return 1;
    254254    }
     
    431431        psMemBlock* ptr = ((psMemBlock* ) vptr) - 1;
    432432
    433         psErrorMsg(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);
    436436
    437437        return;
Note: See TracChangeset for help on using the changeset viewer.