IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 12:34:06 PM (22 years ago)
Author:
desonia
Message:

astyle fixed?

Location:
trunk/psLib/src/collections
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psArray.c

    r1385 r1406  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-08-04 23:37:39 $
     10 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-08-06 22:34:05 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  • trunk/psLib/src/collections/psBitSet.c

    r1385 r1406  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-04 23:37:39 $
     12 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-08-06 22:34:05 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  • trunk/psLib/src/collections/psList.c

    r1385 r1406  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-08-04 23:37:39 $
     8 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-08-06 22:34:05 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  • trunk/psLib/src/collections/psMetadata.c

    r1398 r1406  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-08-05 23:39:23 $
     13*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-08-06 22:34:05 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    280280            return false;
    281281        }
    282     } else if(value != NULL) {
    283 
    284         // The key was found and the new metadata item is a folder node. Don't add new metadata item, since
    285         // it will wipe out existing node.
    286         psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s",
    287                  metadataItem->name );
    288         return false;
    289     } else {
    290 
    291         // Duplicate key not found. Add new metadata item to metadata collection's hash
    292         if(!psHashAdd( mdTable, key, metadataItem )) {
    293             psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s",
     282    } else
     283        if(value != NULL) {
     284
     285            // The key was found and the new metadata item is a folder node. Don't add new metadata item, since
     286            // it will wipe out existing node.
     287            psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s",
    294288                     metadataItem->name );
    295289            return false;
    296         }
    297     }
     290        } else {
     291
     292            // Duplicate key not found. Add new metadata item to metadata collection's hash
     293            if(!psHashAdd( mdTable, key, metadataItem )) {
     294                psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s",
     295                         metadataItem->name );
     296                return false;
     297            }
     298        }
    298299
    299300    // Add all items to metadata collection's list, even if they have the same metadata item names
     
    612613        psError( __func__, "Null extName and extNum = 0 not allowed" );
    613614        return NULL;
    614     } else if(extName && extNum) {
    615         psError( __func__, "Both extName and extNum arguments should not have non zero values." );
    616         return NULL;
    617     }
     615    } else
     616        if(extName && extNum) {
     617            psError( __func__, "Both extName and extNum arguments should not have non zero values." );
     618            return NULL;
     619        }
    618620
    619621    // Allocate metadata if user didn't
  • trunk/psLib/src/collections/psScalar.c

    r1385 r1406  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-08-04 23:37:39 $
     10 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-08-06 22:34:05 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  • trunk/psLib/src/collections/psScalar.h

    r1385 r1406  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-04 23:37:39 $
     12 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-08-06 22:34:05 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  • trunk/psLib/src/collections/psVector.c

    r1404 r1406  
    88*  @author Ross Harman, MHPCC
    99*
    10 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-06 21:50:13 $
     10*  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-08-06 22:34:05 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  • trunk/psLib/src/collections/psVector.h

    r1385 r1406  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-04 23:37:39 $
     13 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-06 22:34:05 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Note: See TracChangeset for help on using the changeset viewer.