IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 4, 2007, 3:58:58 PM (19 years ago)
Author:
jhoblitt
Message:

rename badMemBlock() -> isBadMemBlock()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jch-memory/psLib/src/sys/psMemory.c

    r10908 r10909  
    99*  @author Joshua Hoblitt, University of Hawaii
    1010*
    11 *  @version $Revision: 1.88.2.16 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2007-01-05 01:58:01 $
     11*  @version $Revision: 1.88.2.17 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2007-01-05 01:58:58 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7373
    7474#define HANDLE_BAD_BLOCK(memBlock, file, lineo, func) \
    75 if (badMemBlock(stderr, memBlock, file, lineo, func)) { \
     75if (isBadMemBlock(stderr, memBlock, file, lineo, func)) { \
    7676    PS_MEM_ABORT(__func__, "Unsafe to Continue\n"); \
    7777}
    7878
    79 static bool badMemBlock(FILE *output, const psMemBlock *memBlock, const char *file, unsigned int lineo, const char *func);
     79static bool isBadMemBlock(FILE *output, const psMemBlock *memBlock, const char *file, unsigned int lineo, const char *func);
    8080
    8181// pointer to the last mem block that was allocated
     
    148148 * N.b. If the block wasn't allocated by psAlloc, it will appear corrupted
    149149 */
    150 static bool badMemBlock(FILE *output, const psMemBlock *memBlock, const char *file, unsigned int lineno, const char *func)
     150static bool isBadMemBlock(FILE *output, const psMemBlock *memBlock, const char *file, unsigned int lineno, const char *func)
    151151{
    152152    // n.b. since this is called by psMemCheckCorruption while the memblock
     
    360360    psS32 nbad = 0;               // number of bad blocks
    361361    for (psMemBlock *memBlock = lastMemBlockAllocated; memBlock != NULL; memBlock = memBlock->nextBlock) {
    362         if (badMemBlock(output, memBlock, __FILE__, __LINE__, __func__)) {
     362        if (isBadMemBlock(output, memBlock, __FILE__, __LINE__, __func__)) {
    363363            nbad++;
    364364
     
    652652    ptr = ((psMemBlock* ) vptr) - 1;
    653653
    654     if (badMemBlock(ptr, __func__)) {
     654    if (isBadMemBlock(ptr, __func__)) {
    655655        (void)p_psMemDecrRefCounter(vptr, filename, lineno);
    656656        memProblemCallback(ptr, file, lineno);
Note: See TracChangeset for help on using the changeset viewer.