Revision 17931,
913 bytes
checked in by ghudson, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r17930,
which included commits to RCS files with non-trunk default branches.
|
Rev | Line | |
---|
[17930] | 1 | #ifndef H_HASH |
---|
| 2 | #define H_HASH |
---|
| 3 | |
---|
| 4 | /** \ingroup python |
---|
| 5 | * \file python/hash.h |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | struct hash_table; |
---|
| 9 | typedef struct hash_table * hashTable; |
---|
| 10 | |
---|
| 11 | struct ht_iterator { |
---|
| 12 | int bucket; |
---|
| 13 | int item; |
---|
| 14 | }; |
---|
| 15 | |
---|
| 16 | typedef struct ht_iterator htIterator; |
---|
| 17 | |
---|
| 18 | /*@only@*/ /*@null@*/ struct hash_table * htNewTable(int size); |
---|
| 19 | void htFreeHashTable(/*@only@*/ struct hash_table *ht); |
---|
| 20 | void htHashStats(const struct hash_table *t); |
---|
| 21 | int htInTable(struct hash_table *t, const char * dir, const char * base); |
---|
| 22 | void htAddToTable(struct hash_table *t, const char * dir, const char * base); |
---|
| 23 | void htPrintHashStats(struct hash_table *t); |
---|
| 24 | int htNumEntries(struct hash_table *t); |
---|
| 25 | void htRemoveFromTable(struct hash_table *t, const char * dir, |
---|
| 26 | const char * base); |
---|
| 27 | |
---|
| 28 | /* these use static storage */ |
---|
| 29 | void htIterStart(htIterator * iter); |
---|
| 30 | int htIterGetNext(struct hash_table * t, htIterator * iter, |
---|
| 31 | const char ** dir, const char ** base); |
---|
| 32 | |
---|
| 33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.