IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2004, 10:19:22 AM (22 years ago)
Author:
desonia
Message:

ran astyle on the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.h

    r451 r452  
    1414 *  @author Robert Lupton, Princeton University
    1515 *
    16  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2004-04-19 20:14:04 $
     16 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2004-04-19 20:19:22 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2828{
    2929    const void* startblock;             ///< initialised to p_psMEMMAGIC
    30         struct psMemBlock* previousBlock;   ///< previous block in allocation list
    31         struct psMemBlock* nextBlock;       ///< next block allocation list
     30    struct psMemBlock* previousBlock;   ///< previous block in allocation list
     31    struct psMemBlock* nextBlock;       ///< next block allocation list
    3232    const unsigned long id;             ///< a unique ID for this allocation
    3333    const char* file;                   ///< set from __FILE__ in e.g. p_psAlloc
     
    8585/// Check for memory leaks
    8686int psMemCheckLeaks(
    87         int id0,                        ///< don't list blocks with id < id0
    88         psMemBlock ***arr,              ///< pointer to array of pointers to leaked blocks, or NULL
    89         FILE *fd                        ///< print list of leaks to fd (or NULL)
     87    int id0,                        ///< don't list blocks with id < id0
     88    psMemBlock ***arr,              ///< pointer to array of pointers to leaked blocks, or NULL
     89    FILE *fd                        ///< print list of leaks to fd (or NULL)
    9090);
    9191
    9292/// Check for memory corruption
    9393int psMemCheckCorruption(
    94         int abort_on_error              ///< Abort on detecting corruption?
     94    int abort_on_error              ///< Abort on detecting corruption?
    9595);
    9696
    9797/// Return reference counter
    9898int psMemGetRefCounter(
    99         void *vptr                      ///< Pointer to get refCounter for
     99    void *vptr                      ///< Pointer to get refCounter for
    100100);
    101101
    102102/// Increment reference counter and return the pointer
    103103void *psMemIncrRefCounter(
    104         void *vptr                      ///< Pointer to increment refCounter, and return
     104    void *vptr                      ///< Pointer to increment refCounter, and return
    105105);
    106106
    107107/// Decrement reference counter and return the pointer
    108108void *psMemDecrRefCounter(
    109         void *vptr                      ///< Pointer to decrement refCounter, and return
     109    void *vptr                      ///< Pointer to decrement refCounter, and return
    110110);
    111111
    112112/// Set callback for problems
    113113psMemProblemCallback psMemProblemCallbackSet(
    114         psMemProblemCallback func       ///< Function to run
     114    psMemProblemCallback func       ///< Function to run
    115115);
    116116
    117117/// Set callback for out-of-memory
    118118psMemExhaustedCallback psMemExhaustedCallbackSet(
    119         psMemExhaustedCallback func     ///< Function to run
     119    psMemExhaustedCallback func     ///< Function to run
    120120);
    121121
    122122/// Set call back for when a particular memory block is allocated
    123123psMemAllocateCallback psMemAllocateCallbackSet(
    124         psMemAllocateCallback func      ///< Function to run
     124    psMemAllocateCallback func      ///< Function to run
    125125);
    126126
    127127/// Set call back for when a particular memory block is freed
    128128psMemFreeCallback psMemFreeCallbackSet(
    129         psMemFreeCallback func          ///< Function to run
     129    psMemFreeCallback func          ///< Function to run
    130130);
    131131
     
    136136/// set p_psMemAllocateID to id
    137137long psMemAllocateIDSet(
    138         long id                         ///< ID to set
     138    long id                         ///< ID to set
    139139);
    140140
    141141/// set p_psMemFreeID to id
    142142long psMemFreeIDSet(
    143         long id                         ///< ID to set
     143    long id                         ///< ID to set
    144144);
    145145
     
    159159 */
    160160#ifndef PS_ALLOW_MALLOC
    161     #define malloc(S)       #pragma error Use of malloc is not allowed.  Use psAlloc instead.
    162     #define realloc(P,S)    #pragma error Use of realloc is not allowed.  Use psRealloc instead.
    163     #define calloc(S)       #pragma error Use of calloc is not allowed.  Use psAlloc instead.
    164     #define free(P)         #pragma error Use of free is not allowed.  Use psFree instead.
     161#define malloc(S)       #pragma error Use of malloc is not allowed.  Use psAlloc instead.
     162#define realloc(P,S)    #pragma error Use of realloc is not allowed.  Use psRealloc instead.
     163#define calloc(S)       #pragma error Use of calloc is not allowed.  Use psAlloc instead.
     164#define free(P)         #pragma error Use of free is not allowed.  Use psFree instead.
    165165#endif
    166166
Note: See TracChangeset for help on using the changeset viewer.