extensions/sqlite/sqlite-source/hash.h
changeset 1645 27307df4d711
parent 1203 633c25ce6405
     1.1 --- a/extensions/sqlite/sqlite-source/hash.h	Sun Oct 28 05:06:12 2007 +0000
     1.2 +++ b/extensions/sqlite/sqlite-source/hash.h	Sun Oct 28 05:48:06 2007 +0000
     1.3 @@ -33,10 +33,8 @@
     1.4    char keyClass;          /* SQLITE_HASH_INT, _POINTER, _STRING, _BINARY */
     1.5    char copyKey;           /* True if copy of key made on insert */
     1.6    int count;              /* Number of entries in this table */
     1.7 +  int htsize;             /* Number of buckets in the hash table */
     1.8    HashElem *first;        /* The first element of the array */
     1.9 -  void *(*xMalloc)(int);  /* malloc() function to use */
    1.10 -  void (*xFree)(void *);  /* free() function to use */
    1.11 -  int htsize;             /* Number of buckets in the hash table */
    1.12    struct _ht {            /* the hash table */
    1.13      int count;               /* Number of entries with this hash */
    1.14      HashElem *chain;         /* Pointer to first entry with this hash */
    1.15 @@ -83,6 +81,7 @@
    1.16  void sqlite3HashInit(Hash*, int keytype, int copyKey);
    1.17  void *sqlite3HashInsert(Hash*, const void *pKey, int nKey, void *pData);
    1.18  void *sqlite3HashFind(const Hash*, const void *pKey, int nKey);
    1.19 +HashElem *sqlite3HashFindElem(const Hash*, const void *pKey, int nKey);
    1.20  void sqlite3HashClear(Hash*);
    1.21  
    1.22  /*