Index: /trunk/psLib/src/imageops/psImagePixelManip.c
===================================================================
--- /trunk/psLib/src/imageops/psImagePixelManip.c	(revision 5063)
+++ /trunk/psLib/src/imageops/psImagePixelManip.c	(revision 5064)
@@ -10,6 +10,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-01 01:05:41 $
+ *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-16 23:56:48 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -399,5 +399,5 @@
 // the region is defined wrt the parent image
 void psImageMaskRegion(psImage *image,
-                       psRegion *region,
+                       psRegion region,
                        const char *op,
                        psMaskType maskValue)
@@ -406,11 +406,11 @@
     for (int iy = 0; iy < image->numRows; iy++) {
         for (int ix = 0; ix < image->numCols; ix++) {
-            if (ix + image->col0 <  region->x0)
+            if (ix + image->col0 <  region.x0)
                 continue;
-            if (ix + image->col0 >= region->x1)
+            if (ix + image->col0 >= region.x1)
                 continue;
-            if (iy + image->row0 <  region->y0)
+            if (iy + image->row0 <  region.y0)
                 continue;
-            if (iy + image->row0 >= region->y1)
+            if (iy + image->row0 >= region.y1)
                 continue;
             if ( !strncmp(op, "&", 2) || !strncmp(op, "AND", 5) ) {
@@ -430,5 +430,5 @@
 // the region is defined wrt the parent image
 void psImageKeepRegion(psImage *image,
-                       psRegion *region,
+                       psRegion region,
                        const char *op,
                        psMaskType maskValue)
@@ -437,11 +437,11 @@
     for (int iy = 0; iy < image->numRows; iy++) {
         for (int ix = 0; ix < image->numCols; ix++) {
-            if (ix + image->col0 <  region->x0)
+            if (ix + image->col0 <  region.x0)
                 goto maskit;
-            if (ix + image->col0 >= region->x1)
+            if (ix + image->col0 >= region.x1)
                 goto maskit;
-            if (iy + image->row0 <  region->y0)
+            if (iy + image->row0 <  region.y0)
                 goto maskit;
-            if (iy + image->row0 >= region->y1)
+            if (iy + image->row0 >= region.y1)
                 goto maskit;
             continue;
Index: /trunk/psLib/src/imageops/psImagePixelManip.h
===================================================================
--- /trunk/psLib/src/imageops/psImagePixelManip.h	(revision 5063)
+++ /trunk/psLib/src/imageops/psImagePixelManip.h	(revision 5064)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-01 01:05:41 $
+ *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-16 23:56:48 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -94,5 +94,5 @@
 void psImageMaskRegion(
     psImage *image,                    ///< the image to set
-    psRegion *region,                  ///< the specified region
+    psRegion region,                   ///< the specified region
     const char *op,                    ///< the logical operation
     psMaskType maskValue               ///< the specified bits
@@ -106,5 +106,5 @@
 void psImageKeepRegion(
     psImage *image,                    ///< the image to set
-    psRegion *region,                  ///< the specified region
+    psRegion region,                   ///< the specified region
     const char *op,                    ///< the logical operation
     psMaskType maskValue               ///< the specified bits
Index: /trunk/psLib/src/mathtypes/psImage.c
===================================================================
--- /trunk/psLib/src/mathtypes/psImage.c	(revision 5063)
+++ /trunk/psLib/src/mathtypes/psImage.c	(revision 5064)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-15 21:22:22 $
+ *  @version $Revision: 1.83 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-16 23:56:51 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -165,35 +165,36 @@
 // XXX EAM : this needs to be changes to use psRegion rather than psRegion*
 psRegion psRegionForImage(psImage *image,
-                          psRegion *in)
+                          psRegion in)
 {
 
     // x0,y0, x1,y1 are in *parent* units
     //    PS_ASSERT_PTR_NON_NULL(in, NULL);
-    if( in == NULL ) {
-        psError(PS_ERR_BAD_PARAMETER_NULL, true, "Unallowable operation.  psRegion *in is NULL.");
-        return *in;
-    }
-    /*    if (out == NULL) {
-    //    out = psRegionAlloc(in->x0, in->x1, in->y0, in->y1);
-        *out = psRegionSet(in->x0, in->x1, in->y0, in->y1);
-        } else {
-        *out = *in;
-        }
-    */    // XXX these are probably wrong (see above)
-    if (in->x1 <= 0) {
-        in->x1 = image->col0 + image->numCols + in->x1;
-    }
-    if (in->y1 <= 0) {
-        in->y1 = image->row0 + image->numRows + in->y1;
+    /*
+        if( in == NULL ) {
+            psError(PS_ERR_BAD_PARAMETER_NULL, true, "Unallowable operation.  psRegion in is NULL.");
+            return in;
+        }
+    */    /*    if (out == NULL) {
+        //    out = psRegionAlloc(in->x0, in->x1, in->y0, in->y1);
+            *out = psRegionSet(in->x0, in->x1, in->y0, in->y1);
+            } else {
+            *out = *in;
+            }
+        */    // XXX these are probably wrong (see above)
+    if (in.x1 <= 0) {
+        in.x1 = image->col0 + image->numCols + in.x1;
+    }
+    if (in.y1 <= 0) {
+        in.y1 = image->row0 + image->numRows + in.y1;
     }
 
     // force the lower-limits to be on the child
-    in->x0 = PS_MAX(image->col0, in->x0);
-    in->y0 = PS_MAX(image->row0, in->y0);
+    in.x0 = PS_MAX(image->col0, in.x0);
+    in.y0 = PS_MAX(image->row0, in.y0);
 
     // force the upper-limits to be on the child
-    in->x1 = PS_MIN(image->col0 + image->numCols, in->x1);
-    in->y1 = PS_MIN(image->row0 + image->numRows, in->y1);
-    return (*in);
+    in.x1 = PS_MIN(image->col0 + image->numCols, in.x1);
+    in.y1 = PS_MIN(image->row0 + image->numRows, in.y1);
+    return (in);
 }
 
Index: /trunk/psLib/src/mathtypes/psImage.h
===================================================================
--- /trunk/psLib/src/mathtypes/psImage.h	(revision 5063)
+++ /trunk/psLib/src/mathtypes/psImage.h	(revision 5064)
@@ -11,6 +11,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-15 21:22:22 $
+ *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-16 23:56:51 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -168,5 +168,5 @@
 psRegion psRegionForImage(
     psImage *image,                    ///< the image for which the region is to be set
-    psRegion *in                       ///< the image region limits
+    psRegion in                        ///< the image region limits
 );
 
Index: /trunk/psLib/src/mathtypes/psVector.c
===================================================================
--- /trunk/psLib/src/mathtypes/psVector.c	(revision 5063)
+++ /trunk/psLib/src/mathtypes/psVector.c	(revision 5064)
@@ -9,6 +9,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-09-02 21:32:06 $
+*  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-09-16 23:56:51 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -616,5 +616,5 @@
 
 
-bool psVectorInit(psVector *image,
+bool psVectorInit(psVector *vector,
                   ...)
 {
@@ -636,10 +636,10 @@
     int temp2;
 
-    if (image == NULL)
+    if (vector == NULL)
         return (false);
 
-    va_start (argp, image);
-
-    switch (image->type.type) {
+    va_start (argp, vector);
+
+    switch (vector->type.type) {
     case PS_TYPE_U8:
         temp = va_arg (argp, psU32);
@@ -650,18 +650,18 @@
             return false;
         }
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.U8[iy] = vU8;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.U8[iy] = vU8;
         }
         return (true);
     case PS_TYPE_F32:
         vF32 = (psF32)va_arg (argp, psF64);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.F32[iy] = vF32;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.F32[iy] = vF32;
         }
         return (true);
     case PS_TYPE_F64:
         vF64 = va_arg (argp, psF64);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.F64[iy] = vF64;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.F64[iy] = vF64;
         }
         return (true);
@@ -674,18 +674,18 @@
             return false;
         }
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.U16[iy] = vU16;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.U16[iy] = vU16;
         }
         return (true);
     case PS_TYPE_U32:
         vU32 = va_arg (argp, psU32);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.U32[iy] = vU32;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.U32[iy] = vU32;
         }
         return (true);
     case PS_TYPE_U64:
         vU64 = va_arg (argp, psU64);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.U64[iy] = vU64;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.U64[iy] = vU64;
         }
         return (true);
@@ -698,6 +698,6 @@
             return false;
         }
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.S8[iy] = vS8;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.S8[iy] = vS8;
         }
         return (true);
@@ -710,34 +710,34 @@
             return false;
         }
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.S16[iy] = vS16;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.S16[iy] = vS16;
         }
         return (true);
     case PS_TYPE_S32:
         vS32 = va_arg (argp, psS32);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.S32[iy] = vS32;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.S32[iy] = vS32;
         }
         return (true);
     case PS_TYPE_S64:
         vS64 = va_arg (argp, psS64);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.S64[iy] = vS64;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.S64[iy] = vS64;
         }
         return (true);
     case PS_TYPE_C32:
         vC32 = va_arg (argp, psC32);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.C32[iy] = vC32;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.C32[iy] = vC32;
         }
         return (true);
     case PS_TYPE_C64:
         vC64 = va_arg (argp, psC64);
-        for (long iy = 0; iy < image->n; iy++) {
-            image->data.C64[iy] = vC64;
+        for (long iy = 0; iy < vector->n; iy++) {
+            vector->data.C64[iy] = vC64;
         }
         return (true);
     default:
-        psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype %d not defined in psImageInit\n", image->type);
+        psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype %d not defined in psImageInit\n", vector->type);
         return (false);
     }
Index: /trunk/psLib/src/mathtypes/psVector.h
===================================================================
--- /trunk/psLib/src/mathtypes/psVector.h	(revision 5063)
+++ /trunk/psLib/src/mathtypes/psVector.h	(revision 5064)
@@ -11,6 +11,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-15 21:22:22 $
+ *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-16 23:56:51 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -204,5 +204,5 @@
  */
 bool psVectorInit(
-    psVector *image,                   ///< the vector to be initialized
+    psVector *vector,                  ///< the vector to be initialized
     ...                                ///< Variable argument list for initialization
 );
Index: /trunk/psLib/test/mathtypes/tst_psImage.c
===================================================================
--- /trunk/psLib/test/mathtypes/tst_psImage.c	(revision 5063)
+++ /trunk/psLib/test/mathtypes/tst_psImage.c	(revision 5064)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-09 02:02:54 $
+ *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-09-16 23:56:51 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -286,12 +286,12 @@
 {
     psImage *in;
-    psRegion inReg[1];
+    psRegion inReg;
     psRegion out;
     in = psImageAlloc(1, 1, PS_TYPE_S32);
-    inReg[0] = psRegionSet(1, 2, 1, 2);
+    inReg = psRegionSet(1, 2, 1, 2);
     out = psRegionForImage(in,inReg);
-    psRegion inReg2[1];
+    psRegion inReg2;
     psRegion out2;
-    inReg2[0] = psRegionSet(-1, 0, -2, -1);
+    inReg2 = psRegionSet(-1, 0, -2, -1);
     out2 = psRegionForImage(in, inReg2);
 
