IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1202


Ignore:
Timestamp:
Jul 8, 2004, 12:05:14 PM (22 years ago)
Author:
desonia
Message:

changed psHashInsert to psHashAdd and made it return a bool value indicating
success or not.

Location:
trunk/psLib/src/sysUtils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psHash.c

    r1073 r1202  
    1010 *  @author George Gusciora, MHPCC
    1111 *   
    12  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-06-23 23:00:15 $
     12 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-07-08 22:05:14 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    359359    NONE
    360360 *****************************************************************************/
    361 void *psHashInsert(psHash *table, const char *key, void *data)
     361bool psHashAdd(psHash *table, const char *key, void *data)
    362362{
    363363    if (table == NULL) {
     
    371371    }
    372372
    373     return doHashWork(table, key, data, 0);
     373    return (doHashWork(table, key, data, 0) != NULL);
    374374}
    375375
  • trunk/psLib/src/sysUtils/psHash.h

    r1073 r1202  
    1010 *  @author George Gusciora, MHPCC
    1111 *   
    12  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-06-23 23:00:15 $
     12 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-07-08 22:05:14 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2121 *  \{
    2222 */
     23#include<stdbool.h>
     24
    2325#include "psList.h"
    2426
     
    4648
    4749/// Insert entry into table.
    48 void *psHashInsert(psHash *table,               ///< table to insert in
    49                    const char *key,             ///< key to use
    50                    void *data                   ///< data to insert
    51                   );
     50bool psHashAdd(psHash *table,               ///< table to insert in
     51               const char *key,             ///< key to use
     52               void *data                   ///< data to insert
     53              );
    5254
    5355/// Lookup key in table.
Note: See TracChangeset for help on using the changeset viewer.