| 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 implementation | 12 ** This is the header file for the generic hash-table implementation |
| 13 ** used in SQLite. | 13 ** used in SQLite. |
| 14 */ | 14 */ |
| 15 #ifndef _SQLITE_HASH_H_ | 15 #ifndef SQLITE_HASH_H |
| 16 #define _SQLITE_HASH_H_ | 16 #define SQLITE_HASH_H |
| 17 | 17 |
| 18 /* Forward declarations of structures. */ | 18 /* Forward declarations of structures. */ |
| 19 typedef struct Hash Hash; | 19 typedef struct Hash Hash; |
| 20 typedef struct HashElem HashElem; | 20 typedef struct HashElem HashElem; |
| 21 | 21 |
| 22 /* A complete hash table is an instance of the following structure. | 22 /* A complete hash table is an instance of the following structure. |
| 23 ** The internals of this structure are intended to be opaque -- client | 23 ** The internals of this structure are intended to be opaque -- client |
| 24 ** code should not attempt to access or modify the fields of this structure | 24 ** code should not attempt to access or modify the fields of this structure |
| 25 ** directly. Change this structure only by using the routines below. | 25 ** directly. Change this structure only by using the routines below. |
| 26 ** However, some of the "procedures" and "functions" for modifying and | 26 ** However, some of the "procedures" and "functions" for modifying and |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 #define sqliteHashNext(E) ((E)->next) | 86 #define sqliteHashNext(E) ((E)->next) |
| 87 #define sqliteHashData(E) ((E)->data) | 87 #define sqliteHashData(E) ((E)->data) |
| 88 /* #define sqliteHashKey(E) ((E)->pKey) // NOT USED */ | 88 /* #define sqliteHashKey(E) ((E)->pKey) // NOT USED */ |
| 89 /* #define sqliteHashKeysize(E) ((E)->nKey) // NOT USED */ | 89 /* #define sqliteHashKeysize(E) ((E)->nKey) // NOT USED */ |
| 90 | 90 |
| 91 /* | 91 /* |
| 92 ** Number of entries in a hash table | 92 ** Number of entries in a hash table |
| 93 */ | 93 */ |
| 94 /* #define sqliteHashCount(H) ((H)->count) // NOT USED */ | 94 /* #define sqliteHashCount(H) ((H)->count) // NOT USED */ |
| 95 | 95 |
| 96 #endif /* _SQLITE_HASH_H_ */ | 96 #endif /* SQLITE_HASH_H */ |
| OLD | NEW |