IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psHash.h

    r1441 r2204  
    1111 *  @author George Gusciora, MHPCC
    1212 *   
    13  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-09 23:40:55 $
     13 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-10-27 00:57:31 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2222 *  \{
    2323 */
    24 #include<stdbool.h>
    2524
    2625#include "psList.h"
     
    3029{
    3130    char *key;                  ///< key for this item of data
    32     void *data;                 ///< the data itself
     31    psPtr data;                 ///< the data itself
    3332    struct psHashBucket* next;  ///< list of other possible keys
    3433}
     
    4039typedef struct psHash
    4140{
    42     int nbucket;                ///< Number of buckets in hash table.
     41    psS32 nbucket;                ///< Number of buckets in hash table.
    4342    psHashBucket* *buckets;     ///< The bucket data.
    4443}
     
    4645
    4746/// Allocate hash buckets in table.
    48 psHash* psHashAlloc(int nbucket ///< The number of buckets to allocate.
     47psHash* psHashAlloc(psS32 nbucket ///< The number of buckets to allocate.
    4948                   );
    5049
    5150/// Insert entry into table.
    52 bool psHashAdd(psHash* table,  ///< table to insert in
    53                const char *key, ///< key to use
    54                void *data       ///< data to insert
    55               );
     51psBool psHashAdd(psHash* table,  ///< table to insert in
     52                 const char *key, ///< key to use
     53                 psPtr data       ///< data to insert
     54                );
    5655
    5756/// Lookup key in table.
    58 void *psHashLookup(psHash* table,      ///< table to lookup key in
     57psPtr psHashLookup(psHash* table,      ///< table to lookup key in
    5958                   const char *key      ///< key to lookup
    6059                  );
    6160
    6261/// Remove key from table.
    63 bool psHashRemove(psHash* table,       ///< table to lookup key in
    64                   const char *key       ///< key to lookup
    65                  );
     62psBool psHashRemove(psHash* table,       ///< table to lookup key in
     63                    const char *key       ///< key to lookup
     64                   );
    6665
    6766/// List all keys in table.
Note: See TracChangeset for help on using the changeset viewer.