Lines Matching refs:elem

24839   HashElem *elem;         /* For looping over all elements of the table */
24842 elem = pH->first;
24847 while( elem ){
24848 HashElem *next_elem = elem->next;
24849 sqlite3_free(elem);
24850 elem = next_elem;
24907 HashElem *elem, *next_elem; /* For looping over existing elements */
24933 for(elem=pH->first, pH->first=0; elem; elem = next_elem){
24934 unsigned int h = strHash(elem->pKey) % new_size;
24935 next_elem = elem->next;
24936 insertElement(pH, &new_ht[h], elem);
24950 HashElem *elem; /* Used to loop thru the element list */
24958 elem = pEntry->chain;
24962 elem = pH->first;
24967 assert( elem!=0 );
24968 if( sqlite3StrICmp(elem->pKey,pKey)==0 ){
24969 return elem;
24971 elem = elem->next;
24981 HashElem* elem, /* The element to be removed from the pH */
24985 if( elem->prev ){
24986 elem->prev->next = elem->next;
24988 pH->first = elem->next;
24990 if( elem->next ){
24991 elem->next->prev = elem->prev;
24995 if( pEntry->chain==elem ){
24996 pEntry->chain = elem->next;
25001 sqlite3_free( elem );
25015 HashElem *elem; /* The element that matches key */
25020 elem = findElementWithHash(pH, pKey, &h);
25021 return elem ? elem->data : 0;
25040 HashElem *elem; /* Used to loop thru the element list */
25045 elem = findElementWithHash(pH,pKey,&h);
25046 if( elem ){
25047 void *old_data = elem->data;
25049 removeElementGivenHash(pH,elem,h);
25051 elem->data = data;
25052 elem->pKey = pKey;
140799 Fts3HashElem *elem; /* For looping over all elements of the table */
140802 elem = pH->first;
140807 while( elem ){
140808 Fts3HashElem *next_elem = elem->next;
140809 if( pH->copyKey && elem->pKey ){
140810 fts3HashFree(elem->pKey);
140812 fts3HashFree(elem);
140813 elem = next_elem;
140922 Fts3HashElem *elem, *next_elem; /* For looping over existing elements */
140932 for(elem=pH->first, pH->first=0; elem; elem = next_elem){
140933 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);
140934 next_elem = elem->next;
140935 fts3HashInsertElement(pH, &new_ht[h], elem);
140950 Fts3HashElem *elem; /* Used to loop thru the element list */
140956 elem = pEntry->chain;
140959 while( count-- && elem ){
140960 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){
140961 return elem;
140963 elem = elem->next;
140974 Fts3HashElem* elem, /* The element to be removed from the pH */
140978 if( elem->prev ){
140979 elem->prev->next = elem->next;
140981 pH->first = elem->next;
140983 if( elem->next ){
140984 elem->next->prev = elem->prev;
140987 if( pEntry->chain==elem ){
140988 pEntry->chain = elem->next;
140994 if( pH->copyKey && elem->pKey ){
140995 fts3HashFree(elem->pKey);
140997 fts3HashFree( elem );
141057 Fts3HashElem *elem; /* Used to loop thru the element list */
141067 elem = fts3FindElementByHash(pH,pKey,nKey,h);
141068 if( elem ){
141069 void *old_data = elem->data;
141071 fts3RemoveElementByHash(pH,elem,h);
141073 elem->data = data;