Index: trunk/psLib/src/collections/psMetadata.c
===================================================================
--- trunk/psLib/src/collections/psMetadata.c	(revision 4401)
+++ trunk/psLib/src/collections/psMetadata.c	(revision 4457)
@@ -12,6 +12,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-06-27 20:38:12 $
+*  @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-07-06 03:04:35 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -122,6 +122,6 @@
     psFree(iter->iter);
 
-    if (iter->preg != NULL) {
-        regfree(iter->preg);
+    if (iter->regex != NULL) {
+        regfree(iter->regex);
     }
 }
@@ -268,5 +268,5 @@
 }
 
-bool psMetadataAddItem(psMetadata *md, const psMetadataItem *item, psS32 location, psS32 flags)
+bool psMetadataAddItem(psMetadata *md, const psMetadataItem *item, long location, psS32 flags)
 {
     char * key = NULL;
@@ -360,5 +360,5 @@
 }
 
-bool psMetadataAdd(psMetadata *md, int location, const char *name,
+bool psMetadataAdd(psMetadata *md, long location, const char *name,
                    int format, const char *comment, ...)
 {
@@ -372,5 +372,5 @@
 }
 
-bool psMetadataAddV(psMetadata *md, int location, const char *name,
+bool psMetadataAddV(psMetadata *md, long location, const char *name,
                     int format, const char *comment, va_list list)
 {
@@ -391,5 +391,5 @@
 
 #define METADATA_ADD_TYPE(NAME,TYPE,METATYPE) \
-psBool psMetadataAdd##NAME(psMetadata* md, psS32 where, const char* name, \
+psBool psMetadataAdd##NAME(psMetadata* md, long where, const char* name, \
                            const char* comment, TYPE value) { \
     return psMetadataAdd(md,where,name, METATYPE,comment,value); \
@@ -409,5 +409,5 @@
 METADATA_ADD_TYPE(Array,psArray*,PS_META_ARRAY)
 
-psBool psMetadataRemove(psMetadata *md, psS32 where, const char *key)
+psBool psMetadataRemove(psMetadata *md, long where, const char *key)
 {
     PS_ASSERT_PTR_NON_NULL(md,NULL);
@@ -580,5 +580,5 @@
 psMetadataLookupNumTYPE(Bool)
 
-psMetadataItem* psMetadataGet(const psMetadata *md, int location)
+psMetadataItem* psMetadataGet(const psMetadata *md, long location)
 {
     psMetadataItem* entry = NULL;
@@ -597,5 +597,5 @@
 
 psMetadataIterator* psMetadataIteratorAlloc(psMetadata* md,
-        int location,
+        long location,
         const char* regex)
 {
@@ -604,5 +604,5 @@
 
     psMetadataIterator* newIter = psAlloc(sizeof(psMetadataIterator));
-    newIter->preg = NULL;
+    newIter->regex = NULL;
     newIter->iter = NULL;
 
@@ -614,9 +614,9 @@
         return newIter;
     } else {
-        int regRtn = regcomp(newIter->preg,regex,0);
+        int regRtn = regcomp(newIter->regex,regex,0);
         if (regRtn != 0) {
             char errMsg[256];
-            regerror(regRtn, newIter->preg, errMsg, 256);
-            regfree(newIter->preg);
+            regerror(regRtn, newIter->regex, errMsg, 256);
+            regfree(newIter->regex);
             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
                     PS_ERRORTEXT_psMetadata_REGEX_INVALID,
@@ -633,5 +633,5 @@
 
 bool psMetadataIteratorSet(psMetadataIterator* iterator,
-                           int location)
+                           long location)
 {
     int match;
@@ -643,8 +643,8 @@
     PS_ASSERT_PTR_NON_NULL(iterator->iter,NULL);
 
-    regex_t* preg = iterator->preg;
+    regex_t* regex = iterator->regex;
 
     // handle trivial case where no regex subsetting is required.
-    if (preg == NULL) {
+    if (regex == NULL) {
         return psListIteratorSet(iter,location);
     }
@@ -655,5 +655,5 @@
         psListIteratorSet(iter,PS_LIST_TAIL);
         while ( (cursor=(psMetadataItem*)iter->cursor) != NULL) {
-            if (regexec(preg, cursor->name, 0, NULL, 0) == 0) {
+            if (regexec(regex, cursor->name, 0, NULL, 0) == 0) {
                 // this key is a match
                 match--;
@@ -671,5 +671,5 @@
     psListIteratorSet(iter,PS_LIST_HEAD);
     while ( (cursor=(psMetadataItem*)iter->cursor) != NULL) {
-        if (regexec(preg, cursor->name, 0, NULL, 0) == 0) {
+        if (regexec(regex, cursor->name, 0, NULL, 0) == 0) {
             // this key is a match
             match++;
@@ -692,8 +692,8 @@
     PS_ASSERT_PTR_NON_NULL(iterator->iter,NULL);
 
-    regex_t* preg = iterator->preg;
+    regex_t* regex = iterator->regex;
 
     // handle trivial case where no regex subsetting is required.
-    if (preg == NULL) {
+    if (regex == NULL) {
         return (psMetadataItem*)psListGetAndIncrement(iter);
     }
@@ -703,5 +703,5 @@
     while (psListGetAndIncrement(iter) != NULL) {
         if (iter->cursor != NULL &&
-                regexec(preg, ((psMetadataItem*)iter->cursor)->name, 0, NULL, 0) == 0) {
+                regexec(regex, ((psMetadataItem*)iter->cursor)->name, 0, NULL, 0) == 0) {
             // this key is a match
             break;
@@ -720,8 +720,8 @@
     PS_ASSERT_PTR_NON_NULL(iterator->iter,NULL);
 
-    regex_t* preg = iterator->preg;
+    regex_t* regex = iterator->regex;
 
     // handle trivial case where no regex subsetting is required.
-    if (preg == NULL) {
+    if (regex == NULL) {
         return (psMetadataItem*)psListGetAndDecrement(iter);
     }
@@ -731,5 +731,5 @@
     while (psListGetAndDecrement(iter) != NULL) {
         if (iter->cursor != NULL &&
-                regexec(preg, ((psMetadataItem*)iter->cursor)->name, 0, NULL, 0) == 0) {
+                regexec(regex, ((psMetadataItem*)iter->cursor)->name, 0, NULL, 0) == 0) {
             // this key is a match
             break;
