Changeset 290
- Timestamp:
- Mar 23, 2004, 4:36:51 PM (22 years ago)
- Location:
- trunk/archive/pslib/include
- Files:
-
- 2 edited
-
psMemory.h (modified) (2 diffs)
-
psTrace.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMemory.h
r260 r290 40 40 void *p_psAlloc(size_t size, //!< Size required 41 41 const char *file, //!< File of call 42 int lineno )//!< Line number of call43 ;42 int lineno //!< Line number of call 43 ); 44 44 45 45 /// Memory re-allocation. Underlying private function called by macro psRealloc. … … 47 47 size_t size, //!< Size required 48 48 const char *file, //!< File of call 49 int lineno )//!< Line number of call50 ;49 int lineno //!< Line number of call 50 ); 51 51 52 52 /// Free memory. Underlying private function called by macro psFree. 53 53 void p_psFree(void *ptr, //!< Pointer to free 54 54 const char *file, //!< File of call 55 int lineno )//!< Line number of call56 ;55 int lineno //!< Line number of call 56 ); 57 57 58 58 /// Check for memory leaks 59 59 int psMemCheckLeaks(int id0, //!< don't list blocks with id < id0 60 60 psMemBlock ***arr, //!< pointer to array of pointers to leaked blocks, or NULL 61 FILE *fd )//!< print list of leaks to fd (or NULL)62 ;61 FILE *fd //!< print list of leaks to fd (or NULL) 62 ); 63 63 64 64 /// Check for memory corruption 65 int psMemCheckCorruption(int abort_on_error )//!< Abort on detecting corruption?66 ;65 int psMemCheckCorruption(int abort_on_error //!< Abort on detecting corruption? 66 ); 67 67 68 68 /// Return reference counter 69 int psMemGetRefCounter(void *vptr )//!< Pointer to get refCounter for70 ;69 int psMemGetRefCounter(void *vptr //!< Pointer to get refCounter for 70 ); 71 71 72 72 /// Increment reference counter and return the pointer 73 void *psMemIncrRefCounter(void *vptr )//!< Pointer to increment refCounter, and return74 ;73 void *psMemIncrRefCounter(void *vptr //!< Pointer to increment refCounter, and return 74 ); 75 75 76 76 /// Decrement reference counter and return the pointer 77 void *psMemDecrRefCounter(void *vptr )//!< Pointer to decrement refCounter, and return78 ;77 void *psMemDecrRefCounter(void *vptr //!< Pointer to decrement refCounter, and return 78 ); 79 79 80 80 /// Set callback for problems 81 psMemProblemCallback psMemProblemSetCB(psMemProblemCallback func )//!< Function to run82 ;81 psMemProblemCallback psMemProblemSetCB(psMemProblemCallback func //!< Function to run 82 ); 83 83 84 84 /// Set callback for out-of-memory 85 psMemExhaustedCallback psMemExhaustedSetCB(psMemExhaustedCallback func )//!< Function to run86 ; 85 psMemExhaustedCallback psMemExhaustedSetCB(psMemExhaustedCallback func //!< Function to run 86 ); 87 87 88 88 /// Set call back for when a particular memory block is allocated 89 psMemCallback psMemAllocateSetCB(psMemCallback func )90 ;89 psMemCallback psMemAllocateSetCB(psMemCallback func //!< Function to run 90 ); 91 91 92 92 /// Set call back for when a particular memory block is freed 93 psMemCallback psMemFreeSetCB(psMemCallback func )94 ;93 psMemCallback psMemFreeSetCB(psMemCallback func 94 ); 95 95 96 96 /// get next memory ID 97 int psMemGetId(void) 98 ; 97 int psMemGetId(void); 99 98 100 99 /// set p_psMemAllocateID to id 101 long psMemSetAllocateID(long id )102 ;100 long psMemSetAllocateID(long id //!< ID to set 101 ); 103 102 104 103 /// set p_psMemFreeID to id 105 long psMemSetFreeID(long id )106 ;104 long psMemSetFreeID(long id //!< ID to set 105 ); 107 106 108 107 /* \} */ // End of SystemGroup Functions -
trunk/archive/pslib/include/psTrace.h
r257 r290 15 15 void p_psTrace(const char *facil, ///< facilty of interest 16 16 int level, ///< desired trace level 17 ... )///< trace message arguments18 ;17 ... ///< trace message arguments 18 ); 19 19 20 20 /// Set trace level 21 21 int psSetTraceLevel(const char *facil, ///< facilty of interest 22 int level )///< desired trace level23 ;22 int level ///< desired trace level 23 ); 24 24 25 25 /// Get the trace level 26 int psGetTraceLevel(const char *name )///< facilty of interest27 ;26 int psGetTraceLevel(const char *name ///< facilty of interest 27 ); 28 28 29 29 /// turn off all tracing, and free trace's allocated memory
Note:
See TracChangeset
for help on using the changeset viewer.
