IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2004, 3:00:45 PM (22 years ago)
Author:
rhl
Message:

1/ Add psHashRemove
2/ Rename New/Del to Alloc/Free

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/psHash.h

    r141 r173  
    44typedef struct HashTable psHash;
    55
    6 psHash *psHashNew(int nbucket);         // initial number of buckets
    7 void psHashDel(psHash *table,           // hash table to be freed
    8                void (*itemDel)(void *item)); // how to free hashed data;
     6psHash *psHashAlloc(int nbucket);       // initial number of buckets
     7void psHashFree(psHash *table,          // hash table to be freed
     8                void (*itemFree)(void *item)); // how to free hashed data;
    99                                        // or NULL
    1010
     
    1212                   const char *key,     // key to use
    1313                   void *data,          // data to insert
    14                    void (*itemDel)(void *item)); // how to free hashed data;
     14                   void (*itemFree)(void *item)); // how to free hashed data;
    1515                                        // or NULL
    1616void *psHashLookup(psHash *table,       // table to lookup key in
    1717                   const char *key);    // key to lookup
    1818
     19void *psHashRemove(psHash *table,       // table to lookup key in
     20                   const char *key);    // key to lookup
    1921#endif
Note: See TracChangeset for help on using the changeset viewer.