IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

remove error reporting (other than return status) from psMemCheckType()
remove PS_MEM_ERROR macro

File:
1 edited

Legend:

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

    r10910 r10911  
    99*  @author Joshua Hoblitt, University of Hawaii
    1010*
    11 *  @version $Revision: 1.88.2.18 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2007-01-05 02:52:24 $
     11*  @version $Revision: 1.88.2.19 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2007-01-05 02:54:36 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5050// from within the memory subsystem.  Previous implementations tried to do
    5151// this and would deadlock while trying to allocate memory.
     52//
     53// Note that psError() is also *UNSAFE* to use from within the memory
     54// subsystem.
    5255#define PS_MEM_ABORT(name, ...) \
    5356P_PS_MEM_ABORT(__FILE__, __LINE__, __func__, name, __VA_ARGS__)
     
    6164fprintf(stderr, "\n");\
    6265abort();
    63 
    64 // As with psAbort(), psError() is also *UNSAFE* to use from within the memory
    65 // subsystem.
    66 #define PS_MEM_ERROR(code, new, ...) \
    67 P_PS_MEM_ERROR(__FILE__, __LINE__, __func__, code, new, __VA_ARGS__)
    68 
    69 #define P_PS_MEM_ERROR(filename, lineno, func, code, new, ...) \
    70 fprintf(stderr, "%s (%s:%d) ", func, filename, lineno); \
    71 fprintf(stderr, __VA_ARGS__);\
    72 fprintf(stderr, "\n");
    7366
    7467#define HANDLE_BAD_BLOCK(memBlock, file, lineo, func) \
     
    942935    }
    943936
    944     PS_MEM_ERROR(PS_ERR_BAD_PARAMETER_TYPE, true,
    945                  "Invalid datatype specified.\n");
    946 
    947937    return false;
    948938}
Note: See TracChangeset for help on using the changeset viewer.