OLD | NEW |
1 /* | 1 /* |
2 ** 2001 September 22 | 2 ** 2001 September 22 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
11 ************************************************************************* | 11 ************************************************************************* |
12 ** This is the header file for the generic hash-table implemenation | 12 ** This is the header file for the generic hash-table implementation |
13 ** used in SQLite. We've modified it slightly to serve as a standalone | 13 ** used in SQLite. We've modified it slightly to serve as a standalone |
14 ** hash table implementation for the full-text indexing module. | 14 ** hash table implementation for the full-text indexing module. |
15 ** | 15 ** |
16 */ | 16 */ |
17 #ifndef _FTS3_HASH_H_ | 17 #ifndef _FTS3_HASH_H_ |
18 #define _FTS3_HASH_H_ | 18 #define _FTS3_HASH_H_ |
19 | 19 |
20 /* Forward declarations of structures. */ | 20 /* Forward declarations of structures. */ |
21 typedef struct Fts3Hash Fts3Hash; | 21 typedef struct Fts3Hash Fts3Hash; |
22 typedef struct Fts3HashElem Fts3HashElem; | 22 typedef struct Fts3HashElem Fts3HashElem; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 #define fts3HashData(E) ((E)->data) | 103 #define fts3HashData(E) ((E)->data) |
104 #define fts3HashKey(E) ((E)->pKey) | 104 #define fts3HashKey(E) ((E)->pKey) |
105 #define fts3HashKeysize(E) ((E)->nKey) | 105 #define fts3HashKeysize(E) ((E)->nKey) |
106 | 106 |
107 /* | 107 /* |
108 ** Number of entries in a hash table | 108 ** Number of entries in a hash table |
109 */ | 109 */ |
110 #define fts3HashCount(H) ((H)->count) | 110 #define fts3HashCount(H) ((H)->count) |
111 | 111 |
112 #endif /* _FTS3_HASH_H_ */ | 112 #endif /* _FTS3_HASH_H_ */ |
OLD | NEW |