IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 15, 2004, 4:18:57 PM (22 years ago)
Author:
desonia
Message:

modifications so that psMemory compiles.

File:
1 edited

Legend:

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

    r430 r432  
    1414 *  @author Robert Lupton, Princeton University
    1515 *
    16  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2004-04-15 21:22:09 $
     16 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2004-04-16 02:18:57 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7979
    8080/// Check for memory leaks
    81 int psMemCheckLeaks(int id0,  ///< don't list blocks with id < id0
    82                     psMemBlock ***arr, ///< pointer to array of pointers to leaked blocks, or NULL
    83                     FILE *fd)  ///< print list of leaks to fd (or NULL)
    84 ;
     81int psMemCheckLeaks(
     82        int id0,                        ///< don't list blocks with id < id0
     83        psMemBlock ***arr,              ///< pointer to array of pointers to leaked blocks, or NULL
     84        FILE *fd                        ///< print list of leaks to fd (or NULL)
     85);
    8586
    8687/// Check for memory corruption
    87 int psMemCheckCorruption(int abort_on_error) ///< Abort on detecting corruption?
    88 ;
     88int psMemCheckCorruption(
     89        int abort_on_error              ///< Abort on detecting corruption?
     90);
    8991
    9092/// Return reference counter
    91 int psMemGetRefCounter(void *vptr) ///< Pointer to get refCounter for
    92 ;
     93int psMemGetRefCounter(
     94        void *vptr                      ///< Pointer to get refCounter for
     95);
    9396
    9497/// Increment reference counter and return the pointer
    95 void *psMemIncrRefCounter(void *vptr) ///< Pointer to increment refCounter, and return
    96 ;
     98void *psMemIncrRefCounter(
     99        void *vptr                      ///< Pointer to increment refCounter, and return
     100);
    97101
    98102/// Decrement reference counter and return the pointer
    99 void *psMemDecrRefCounter(void *vptr) ///< Pointer to decrement refCounter, and return
    100 ;
     103void *psMemDecrRefCounter(
     104        void *vptr                      ///< Pointer to decrement refCounter, and return
     105);
    101106
    102107/// Set callback for problems
    103 psMemProblemCallback psMemProblemCallbackSet(psMemProblemCallback func) ///< Function to run
    104 ;
     108psMemProblemCallback psMemProblemCallbackSet(
     109        psMemProblemCallback func       ///< Function to run
     110);
    105111
    106112/// Set callback for out-of-memory
    107 psMemExhaustedCallback psMemExhaustedCallbackSet(psMemExhaustedCallback func) ///< Function to run
    108 ;
     113psMemExhaustedCallback psMemExhaustedCallbackSet(
     114        psMemExhaustedCallback func     ///< Function to run
     115);
    109116
    110117/// Set call back for when a particular memory block is allocated
    111 psMemCallback psMemAllocateCallbackSet(psMemAllocateCallback func) ///< Function to run
    112 ;
     118psMemAllocateCallback psMemAllocateCallbackSet(
     119        psMemAllocateCallback func      ///< Function to run
     120);
    113121
    114122/// Set call back for when a particular memory block is freed
    115 psMemCallback psMemFreeCallbackSet(psMemFreeCallback func) ///< Function to run
    116 ;
     123psMemFreeCallback psMemFreeCallbackSet(
     124        psMemFreeCallback func          ///< Function to run
     125);
    117126
    118127/// get next memory ID
     
    121130
    122131/// set p_psMemAllocateID to id
    123 long psMemAllocateIDSet(long id) ///< ID to set
    124 ;
     132long psMemAllocateIDSet(
     133        long id                         ///< ID to set
     134);
    125135
    126136/// set p_psMemFreeID to id
    127 long psMemFreeIDSet(long id)  ///< ID to set
    128 ;
     137long psMemFreeIDSet(
     138        long id                         ///< ID to set
     139);
    129140
    130141//@} End of public Functions
Note: See TracChangeset for help on using the changeset viewer.