Index: trunk/psLib/src/sys/psMemory.h
===================================================================
--- trunk/psLib/src/sys/psMemory.h	(revision 432)
+++ trunk/psLib/src/sys/psMemory.h	(revision 451)
@@ -14,6 +14,6 @@
  *  @author Robert Lupton, Princeton University
  *
- *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-04-16 02:18:57 $
+ *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-04-19 20:14:04 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -25,13 +25,14 @@
  *  aligned for all storage types.
  */
-typedef struct
+typedef struct psMemBlock
 {
-    const void *startblock;             ///< initialised to p_psMEMMAGIC
+    const void* startblock;             ///< initialised to p_psMEMMAGIC
+	struct psMemBlock* previousBlock;   ///< previous block in allocation list
+	struct psMemBlock* nextBlock;       ///< next block allocation list
     const unsigned long id;             ///< a unique ID for this allocation
-    const char *file;                   ///< set from __FILE__ in e.g. p_psAlloc
+    const char* file;                   ///< set from __FILE__ in e.g. p_psAlloc
     const int lineno;                   ///< set from __LINE__ in e.g. p_psAlloc
-    int refCounter;                     ///< how many times pointer is referenced
-    const void **endpost;               ///< initialised to p_psMEMMAGIC
-    const void *endblock;               ///< initialised to p_psMEMMAGIC
+    unsigned int refCounter;            ///< how many times pointer is referenced
+    const void* endblock;               ///< initialised to p_psMEMMAGIC
 }
 psMemBlock;
@@ -43,5 +44,9 @@
 typedef long (*psMemFreeCallback)(const psMemBlock *ptr);
 
-/// prototype of a callback used in error conditions
+/** prototype of a callback used in error conditions
+ *
+ *  This callback should never try to call psAlloc or psFree.
+ *
+ */
 typedef void (*psMemProblemCallback)(const psMemBlock *ptr, const char *file, int lineno);
 
