Index: /trunk/psLib/src/collections/psCompare.c
===================================================================
--- /trunk/psLib/src/collections/psCompare.c	(revision 1126)
+++ /trunk/psLib/src/collections/psCompare.c	(revision 1127)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-28 20:36:37 $
+ *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-29 23:19:11 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -21,5 +21,5 @@
 
 #define compareNumericPtrDescending(TYPE) \
-int psCompare##TYPE##DescendingPtr(const void** a, const void** b) { \
+int psCompareDescending##TYPE##Ptr(const void** a, const void** b) { \
     return **((ps##TYPE**)b) - **((ps##TYPE**)a); \
 }
Index: /trunk/psLib/src/collections/psList.c
===================================================================
--- /trunk/psLib/src/collections/psList.c	(revision 1126)
+++ /trunk/psLib/src/collections/psList.c	(revision 1127)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-28 20:36:37 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-29 23:19:11 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -176,5 +176,5 @@
  * Remove an element from a list
  */
-void *psListRemove(psList *list, void *data,  int which)
+bool psListRemove(psList *list, void *data,  int which)
 {
     psListElem *elem = NULL;  // element to remove
@@ -183,5 +183,5 @@
     if (list == NULL) {
         psError(__func__,"list parameter found to be NULL in %s",__func__);
-        return NULL;
+        return false;
     }
 
@@ -204,5 +204,5 @@
         if (which == PS_LIST_UNKNOWN) {
             psError(__func__, "Failed to find item in given psList.");
-            return NULL;
+            return false;
         }
     }
@@ -215,5 +215,5 @@
     if (elem == NULL) {
         psError(__func__, "Couldn't position to given index (%d) to remove element from list.",which);
-        return NULL;
+        return false;
     }
 
@@ -245,10 +245,9 @@
     ;
 
-    /*
-     * OK, delete list element and return the data
-     */
-    data = elem->data;
+    // OK, delete list element and its data
+    psFree(elem->data);
     psFree(elem);
-    return data;
+
+    return true;
 }
 
@@ -460,5 +459,5 @@
 
 
-psList* psListSort(psList* list, psCompareFcn compare)
+psList* psListSort(psList* list, psComparePtrFcn compare)
 {
     psVector* vector;
@@ -476,4 +475,5 @@
     // convert back to linked list
     list = psVectorToList(vector);
+    psFree(vector);
 
     return list;
Index: /trunk/psLib/src/collections/psList.h
===================================================================
--- /trunk/psLib/src/collections/psList.h	(revision 1126)
+++ /trunk/psLib/src/collections/psList.h	(revision 1127)
@@ -10,6 +10,6 @@
  *  @ingroup LinkedList
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-28 20:36:37 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-29 23:19:11 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -17,4 +17,5 @@
 
 #include <pthread.h>                   // we need a mutex to make this stuff thread safe.
+#include <stdbool.h>                   // we use the bool type.
 
 #include "psCompare.h"
@@ -98,8 +99,7 @@
 /** Remove an item from a list.  If which parameter is PS_LIST_UNKNOWN,
  *
- *  @return void*       The data item that was removed.  If NULL, no item was
- *                      removed.
+ *  @return bool        TRUE if element is successfully removed, otherwise FALSE.
  */
-void* psListRemove(
+bool psListRemove(
     psList* restrict list,
     ///< list to remove element from
@@ -182,5 +182,5 @@
 );
 
-psList* psListSort(psList* list, psCompareFcn compare);
+psList* psListSort(psList* list, psComparePtrFcn compare);
 
 /// @} End of DataGroup Functions
Index: /trunk/psLib/src/math/psCompare.c
===================================================================
--- /trunk/psLib/src/math/psCompare.c	(revision 1126)
+++ /trunk/psLib/src/math/psCompare.c	(revision 1127)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-28 20:36:37 $
+ *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-29 23:19:11 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -21,5 +21,5 @@
 
 #define compareNumericPtrDescending(TYPE) \
-int psCompare##TYPE##DescendingPtr(const void** a, const void** b) { \
+int psCompareDescending##TYPE##Ptr(const void** a, const void** b) { \
     return **((ps##TYPE**)b) - **((ps##TYPE**)a); \
 }
Index: /trunk/psLib/src/types/psList.c
===================================================================
--- /trunk/psLib/src/types/psList.c	(revision 1126)
+++ /trunk/psLib/src/types/psList.c	(revision 1127)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-28 20:36:37 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-29 23:19:11 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -176,5 +176,5 @@
  * Remove an element from a list
  */
-void *psListRemove(psList *list, void *data,  int which)
+bool psListRemove(psList *list, void *data,  int which)
 {
     psListElem *elem = NULL;  // element to remove
@@ -183,5 +183,5 @@
     if (list == NULL) {
         psError(__func__,"list parameter found to be NULL in %s",__func__);
-        return NULL;
+        return false;
     }
 
@@ -204,5 +204,5 @@
         if (which == PS_LIST_UNKNOWN) {
             psError(__func__, "Failed to find item in given psList.");
-            return NULL;
+            return false;
         }
     }
@@ -215,5 +215,5 @@
     if (elem == NULL) {
         psError(__func__, "Couldn't position to given index (%d) to remove element from list.",which);
-        return NULL;
+        return false;
     }
 
@@ -245,10 +245,9 @@
     ;
 
-    /*
-     * OK, delete list element and return the data
-     */
-    data = elem->data;
+    // OK, delete list element and its data
+    psFree(elem->data);
     psFree(elem);
-    return data;
+
+    return true;
 }
 
@@ -460,5 +459,5 @@
 
 
-psList* psListSort(psList* list, psCompareFcn compare)
+psList* psListSort(psList* list, psComparePtrFcn compare)
 {
     psVector* vector;
@@ -476,4 +475,5 @@
     // convert back to linked list
     list = psVectorToList(vector);
+    psFree(vector);
 
     return list;
Index: /trunk/psLib/src/types/psList.h
===================================================================
--- /trunk/psLib/src/types/psList.h	(revision 1126)
+++ /trunk/psLib/src/types/psList.h	(revision 1127)
@@ -10,6 +10,6 @@
  *  @ingroup LinkedList
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-28 20:36:37 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-29 23:19:11 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -17,4 +17,5 @@
 
 #include <pthread.h>                   // we need a mutex to make this stuff thread safe.
+#include <stdbool.h>                   // we use the bool type.
 
 #include "psCompare.h"
@@ -98,8 +99,7 @@
 /** Remove an item from a list.  If which parameter is PS_LIST_UNKNOWN,
  *
- *  @return void*       The data item that was removed.  If NULL, no item was
- *                      removed.
+ *  @return bool        TRUE if element is successfully removed, otherwise FALSE.
  */
-void* psListRemove(
+bool psListRemove(
     psList* restrict list,
     ///< list to remove element from
@@ -182,5 +182,5 @@
 );
 
-psList* psListSort(psList* list, psCompareFcn compare);
+psList* psListSort(psList* list, psComparePtrFcn compare);
 
 /// @} End of DataGroup Functions
