Index: trunk/psLib/src/collections/psArray.c
===================================================================
--- trunk/psLib/src/collections/psArray.c	(revision 4312)
+++ trunk/psLib/src/collections/psArray.c	(revision 4342)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-18 00:53:32 $
+ *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-06-22 02:05:41 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -49,5 +49,5 @@
   FUNCTION IMPLEMENTATION - PUBLIC
  *****************************************************************************/
-psArray* psArrayAlloc(psU32 nalloc)
+psArray* psArrayAlloc(unsigned long nalloc)
 {
     psArray* psArr = NULL;
@@ -66,5 +66,5 @@
 }
 
-psArray* psArrayRealloc(psArray* in, psU32 nalloc)
+psArray* psArrayRealloc(psArray* in, unsigned long nalloc)
 {
     if (in == NULL) {
@@ -159,9 +159,9 @@
 
 /// Set an element in the array.
-psBool psArraySet(psArray* in,                       ///< input array to set element in
-                  psU32 position,                    ///< the element position to set
-                  void* value)                       ///< the value to set it to
-{
-    if (in == NULL)
+bool psArraySet(psArray* array,                      ///< input array to set element in
+                unsigned long position,            ///< the element position to set
+                psPtr data)                        ///< the value to set it to
+{
+    if (array == NULL)
     {
         psError(PS_ERR_BAD_PARAMETER_NULL, true,
@@ -170,14 +170,14 @@
     }
 
-    if (position >= in->nalloc)
+    if (position >= array->nalloc)
     {
         psError(PS_ERR_BAD_PARAMETER_NULL, true,
                 PS_ERRORTEXT_psArray_POSITION_BEYOND_NALLOC,
-                position, in->nalloc);
+                position, array->nalloc);
         return false;
     }
 
-    psFree(in->data[position]);
-    in->data[position] = value;
+    psFree(array->data[position]);
+    array->data[position] = data;
 
     return true;
@@ -185,7 +185,7 @@
 
 /// Get an element in the array.
-void* psArrayGet(psArray* in, psU32 position )
-{
-    if (in == NULL) {
+psPtr psArrayGet(const psArray* array, unsigned long position )
+{
+    if (array == NULL) {
         psError(PS_ERR_BAD_PARAMETER_NULL, true,
                 PS_ERRORTEXT_psArray_ARRAY_NULL);
@@ -193,15 +193,15 @@
     }
 
-    if (position >= in->nalloc) {
+    if (position >= array->nalloc) {
         psError(PS_ERR_BAD_PARAMETER_NULL, true,
                 PS_ERRORTEXT_psArray_POSITION_BEYOND_NALLOC,
-                position, in->nalloc);
-        return NULL;
-    }
-
-    return in->data[position];
-}
-
-
-
-
+                position, array->nalloc);
+        return NULL;
+    }
+
+    return array->data[position];
+}
+
+
+
+
