IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2004, 5:01:04 PM (22 years ago)
Author:
Paul Price
Message:

Standardised on /< as Doxygen comment for variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psMemory.h

    r326 r344  
    1616 */
    1717typedef struct {
    18     const void *magic0;                 //!< initialised to p_psMEMMAGIC
    19     const unsigned long id;             //!< a unique ID for this allocation
    20     const char *file;                   //!< set from __FILE__ in e.g. p_psAlloc
    21     const int lineno;                   //!< set from __LINE__ in e.g. p_psAlloc
    22     int refCounter;                     //!< how many times pointer is referenced
    23     const void *magic;                  //!< initialised to p_psMEMMAGIC
     18    const void *magic0;                 ///< initialised to p_psMEMMAGIC
     19    const unsigned long id;             ///< a unique ID for this allocation
     20    const char *file;                   ///< set from __FILE__ in e.g. p_psAlloc
     21    const int lineno;                   ///< set from __LINE__ in e.g. p_psAlloc
     22    int refCounter;                     ///< how many times pointer is referenced
     23    const void *magic;                  ///< initialised to p_psMEMMAGIC
    2424} psMemBlock;
    2525
     
    3939
    4040/// Memory allocation. Underlying private function called by macro psAlloc.
    41 void *p_psAlloc(size_t size,            //!< Size required
    42                 const char *file,       //!< File of call
    43                 int lineno              //!< Line number of call
     41void *p_psAlloc(size_t size,            ///< Size required
     42                const char *file,       ///< File of call
     43                int lineno              ///< Line number of call
    4444                );
    4545
    4646/// Memory re-allocation.  Underlying private function called by macro psRealloc.
    47 void *p_psRealloc(void *ptr,            //!< Pointer to re-allocate
    48                   size_t size,          //!< Size required
    49                   const char *file,     //!< File of call
    50                   int lineno            //!< Line number of call
     47void *p_psRealloc(void *ptr,            ///< Pointer to re-allocate
     48                  size_t size,          ///< Size required
     49                  const char *file,     ///< File of call
     50                  int lineno            ///< Line number of call
    5151                  );
    5252
    5353/// Free memory.  Underlying private function called by macro psFree.
    54 void p_psFree(void *ptr,                //!< Pointer to free
    55               const char *file,         //!< File of call
    56               int lineno                //!< Line number of call
     54void p_psFree(void *ptr,                ///< Pointer to free
     55              const char *file,         ///< File of call
     56              int lineno                ///< Line number of call
    5757              );
    5858
    5959/// Check for memory leaks
    60 int psMemCheckLeaks(int id0,            //!< don't list blocks with id < id0
    61                     psMemBlock ***arr,  //!< pointer to array of pointers to leaked blocks, or NULL
    62                     FILE *fd            //!< print list of leaks to fd (or NULL)
     60int psMemCheckLeaks(int id0,            ///< don't list blocks with id < id0
     61                    psMemBlock ***arr,  ///< pointer to array of pointers to leaked blocks, or NULL
     62                    FILE *fd            ///< print list of leaks to fd (or NULL)
    6363                    );
    6464
    6565/// Check for memory corruption
    66 int psMemCheckCorruption(int abort_on_error //!< Abort on detecting corruption?
     66int psMemCheckCorruption(int abort_on_error ///< Abort on detecting corruption?
    6767                         );
    6868
    6969/// Return reference counter
    70 int psMemGetRefCounter(void *vptr       //!< Pointer to get refCounter for
     70int psMemGetRefCounter(void *vptr       ///< Pointer to get refCounter for
    7171                       );
    7272
    7373/// Increment reference counter and return the pointer
    74 void *psMemIncrRefCounter(void *vptr    //!< Pointer to increment refCounter, and return
     74void *psMemIncrRefCounter(void *vptr    ///< Pointer to increment refCounter, and return
    7575                          );
    7676
    7777/// Decrement reference counter and return the pointer
    78 void *psMemDecrRefCounter(void *vptr    //!< Pointer to decrement refCounter, and return
     78void *psMemDecrRefCounter(void *vptr    ///< Pointer to decrement refCounter, and return
    7979                          );
    8080
    8181/// Set callback for problems
    82 psMemProblemCallback psMemProblemSetCB(psMemProblemCallback func //!< Function to run
     82psMemProblemCallback psMemProblemSetCB(psMemProblemCallback func ///< Function to run
    8383                                       );
    8484
    8585/// Set callback for out-of-memory
    86 psMemExhaustedCallback psMemExhaustedSetCB(psMemExhaustedCallback func //!< Function to run
     86psMemExhaustedCallback psMemExhaustedSetCB(psMemExhaustedCallback func ///< Function to run
    8787                                           );
    8888
    8989/// Set call back for when a particular memory block is allocated
    90 psMemCallback psMemAllocateSetCB(psMemCallback func //!< Function to run
     90psMemCallback psMemAllocateSetCB(psMemCallback func ///< Function to run
    9191                                 );
    9292
     
    9999
    100100/// set p_psMemAllocateID to id
    101 long psMemSetAllocateID(long id         //!< ID to set
     101long psMemSetAllocateID(long id         ///< ID to set
    102102                        );
    103103
    104104/// set p_psMemFreeID to id
    105 long psMemSetFreeID(long id             //!< ID to set
     105long psMemSetFreeID(long id             ///< ID to set
    106106                    );
    107107
Note: See TracChangeset for help on using the changeset viewer.