| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_buffer.c | 357 Fts5TermsetEntry *pEntry; in sqlite3Fts5TermsetAdd() local 369 for(pEntry=p->apHash[hash]; pEntry; pEntry=pEntry->pNext){ in sqlite3Fts5TermsetAdd() 370 if( pEntry->iIdx==iIdx in sqlite3Fts5TermsetAdd() 379 if( pEntry==0 ){ in sqlite3Fts5TermsetAdd() 381 if( pEntry ){ in sqlite3Fts5TermsetAdd() 382 pEntry->pTerm = (char*)&pEntry[1]; in sqlite3Fts5TermsetAdd() 383 pEntry->nTerm = nTerm; in sqlite3Fts5TermsetAdd() 384 pEntry->iIdx = iIdx; in sqlite3Fts5TermsetAdd() 387 p->apHash[hash] = pEntry; in sqlite3Fts5TermsetAdd() 400 while( pEntry ){ in sqlite3Fts5TermsetFree() [all …]
|
| H A D | fts5_hash.c | 462 Fts5HashEntry *pEntry = pIter; in fts5HashEntrySort() local 463 pEntry->pScanNext = 0; in fts5HashEntrySort() 465 pEntry = fts5HashEntryMerge(pEntry, ap[i]); in fts5HashEntrySort() 468 ap[i] = pEntry; in fts5HashEntrySort()
|
| /sqlite-3.40.0/src/ |
| H A D | rowset.c | 136 p->pEntry = 0; in sqlite3RowSetInit() 161 p->pEntry = 0; in sqlite3RowSetClear() 218 if( pEntry==0 ) return; in sqlite3RowSetInsert() 219 pEntry->v = rowid; in sqlite3RowSetInsert() 220 pEntry->pRight = 0; in sqlite3RowSetInsert() 230 p->pEntry = pEntry; in sqlite3RowSetInsert() 232 p->pLast = pEntry; in sqlite3RowSetInsert() 415 p->pEntry = rowSetEntrySort(p->pEntry); in sqlite3RowSetNext() 421 if( p->pEntry ){ in sqlite3RowSetNext() 423 p->pEntry = p->pEntry->pRight; in sqlite3RowSetNext() [all …]
|
| H A D | hash.c | 78 if( pEntry ){ in insertElement() 79 pHead = pEntry->count ? pEntry->chain : 0; in insertElement() 80 pEntry->count++; in insertElement() 81 pEntry->chain = pNew; in insertElement() 158 struct _ht *pEntry; in findElementWithHash() local 160 pEntry = &pH->ht[h]; in findElementWithHash() 161 elem = pEntry->chain; in findElementWithHash() 162 count = pEntry->count; in findElementWithHash() 187 struct _ht *pEntry; in removeElementGivenHash() local 197 pEntry = &pH->ht[h]; in removeElementGivenHash() [all …]
|
| H A D | test_malloc.c | 745 Tcl_HashEntry *pEntry; in test_memdebug_callback() local 761 Tcl_SetHashValue(pEntry, (ClientData)pLog); in test_memdebug_callback() 763 pLog = (MallocLog *)Tcl_GetHashValue(pEntry); in test_memdebug_callback() 774 Tcl_HashEntry *pEntry; in test_memdebug_log_clear() local 776 pEntry=Tcl_FirstHashEntry(&aMallocLog, &search); in test_memdebug_log_clear() 777 pEntry; in test_memdebug_log_clear() 778 pEntry=Tcl_NextHashEntry(&search) in test_memdebug_log_clear() 827 Tcl_HashEntry *pEntry; in test_memdebug_log() local 833 pEntry=Tcl_FirstHashEntry(&aMallocLog, &search); in test_memdebug_log() 834 pEntry; in test_memdebug_log() [all …]
|
| H A D | attach.c | 276 HashElem *pEntry; in detachFunc() local 306 pEntry = sqliteHashFirst(&db->aDb[1].pSchema->trigHash); in detachFunc() 307 while( pEntry ){ in detachFunc() 308 Trigger *pTrig = (Trigger*)sqliteHashData(pEntry); in detachFunc() 312 pEntry = sqliteHashNext(pEntry); in detachFunc()
|
| H A D | test_fs.c | 132 struct DIRENT *pEntry; member 239 pCsr->pEntry = readdir(pCsr->pDir); in fsdirNext() 240 if( pCsr->pEntry==0 ){ in fsdirNext() 303 sqlite3_result_text(ctx, pCsr->pEntry->d_name, -1, SQLITE_TRANSIENT); in fsdirColumn()
|
| /sqlite-3.40.0/ext/lsm1/lsm-test/ |
| H A D | lsmtest_util.c | 158 struct Entry *pEntry; in argError() local 162 for(pEntry=(struct Entry *)aData; in argError() 163 pEntry->zName; in argError() 164 pEntry=(struct Entry *)&((unsigned char *)pEntry)[sz] in argError() 167 zPrev = pEntry->zName; in argError() 180 struct Entry *pEntry; in testArgSelectX() local 187 for(pEntry=(struct Entry *)aData; in testArgSelectX() 188 pEntry->zName; in testArgSelectX() 189 pEntry=(struct Entry *)&((unsigned char *)pEntry)[sz] in testArgSelectX() 191 int nName = strlen(pEntry->zName); in testArgSelectX() [all …]
|
| /sqlite-3.40.0/ext/expert/ |
| H A D | sqlite3expert.c | 203 for(pEntry=pHash->aHash[i]; pEntry; pEntry=pNext){ in idxHashClear() 241 for(pEntry=pHash->aHash[iHash]; pEntry; pEntry=pEntry->pHashNext){ in idxHashAdd() 247 if( pEntry ){ in idxHashAdd() 248 pEntry->zKey = (char*)&pEntry[1]; in idxHashAdd() 251 pEntry->zVal = &pEntry->zKey[nKey+1]; in idxHashAdd() 273 for(pEntry=pHash->aHash[iHash]; pEntry; pEntry=pEntry->pHashNext){ in idxHashFind() 289 if( pEntry ) return pEntry->zVal; in idxHashSearch() 1244 for(pEntry=hIdx.pFirst; pEntry; pEntry=pEntry->pNext){ in idxFindIndexes() 1687 if( pEntry ){ in idxPopulateOneStat1() 1976 for(pEntry=p->hIdx.pFirst; pEntry; pEntry=pEntry->pNext){ in sqlite3_expert_analyze() [all …]
|
| /sqlite-3.40.0/ext/fts3/ |
| H A D | fts3_hash.c | 172 pHead = pEntry->chain; in fts3HashInsertElement() 185 pEntry->count++; in fts3HashInsertElement() 186 pEntry->chain = pNew; in fts3HashInsertElement() 232 elem = pEntry->chain; in fts3FindElementByHash() 233 count = pEntry->count; in fts3FindElementByHash() 253 struct _fts3ht *pEntry; in fts3RemoveElementByHash() local 262 pEntry = &pH->ht[h]; in fts3RemoveElementByHash() 263 if( pEntry->chain==elem ){ in fts3RemoveElementByHash() 266 pEntry->count--; in fts3RemoveElementByHash() 267 if( pEntry->count<=0 ){ in fts3RemoveElementByHash() [all …]
|
| /sqlite-3.40.0/ext/fts2/ |
| H A D | fts2_hash.c | 174 pHead = pEntry->chain; in insertElement() 187 pEntry->count++; in insertElement() 188 pEntry->chain = pNew; in insertElement() 231 elem = pEntry->chain; in findElementGivenHash() 232 count = pEntry->count; in findElementGivenHash() 252 struct _fts2ht *pEntry; in removeElementGivenHash() local 261 pEntry = &pH->ht[h]; in removeElementGivenHash() 262 if( pEntry->chain==elem ){ in removeElementGivenHash() 265 pEntry->count--; in removeElementGivenHash() 266 if( pEntry->count<=0 ){ in removeElementGivenHash() [all …]
|
| /sqlite-3.40.0/ext/fts1/ |
| H A D | ft_hash.c | 209 pHead = pEntry->chain; in insertElement() 222 pEntry->count++; in insertElement() 223 pEntry->chain = pNew; in insertElement() 266 elem = pEntry->chain; in findElementGivenHash() 267 count = pEntry->count; in findElementGivenHash() 287 struct _ht *pEntry; in removeElementGivenHash() local 296 pEntry = &pH->ht[h]; in removeElementGivenHash() 297 if( pEntry->chain==elem ){ in removeElementGivenHash() 300 pEntry->count--; in removeElementGivenHash() 301 if( pEntry->count<=0 ){ in removeElementGivenHash() [all …]
|
| H A D | fts1_hash.c | 167 pHead = pEntry->chain; in insertElement() 180 pEntry->count++; in insertElement() 181 pEntry->chain = pNew; in insertElement() 224 elem = pEntry->chain; in findElementGivenHash() 225 count = pEntry->count; in findElementGivenHash() 245 struct _fts1ht *pEntry; in removeElementGivenHash() local 254 pEntry = &pH->ht[h]; in removeElementGivenHash() 255 if( pEntry->chain==elem ){ in removeElementGivenHash() 258 pEntry->count--; in removeElementGivenHash() 259 if( pEntry->count<=0 ){ in removeElementGivenHash() [all …]
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | zipfile.c | 409 ZipfileEntry *pEntry; in zipfileCleanupTransaction() local 416 for(pEntry=pTab->pFirstEntry; pEntry; pEntry=pNext){ in zipfileCleanupTransaction() 417 pNext = pEntry->pNext; in zipfileCleanupTransaction() 418 zipfileEntryFree(pEntry); in zipfileCleanupTransaction() 1353 ZipfileCDS *pCds = &pEntry->cds; in zipfileSerializeLFH() 1380 zipfileWrite32(a, pEntry->mUnixTime); in zipfileSerializeLFH() 1387 ZipfileEntry *pEntry, in zipfileAppendEntry() argument 1758 ZipfileCDS *pCDS = &pEntry->cds; in zipfileSerializeCDS() 1760 if( pEntry->aExtra==0 ){ in zipfileSerializeCDS() 1786 if( pEntry->aExtra ){ in zipfileSerializeCDS() [all …]
|
| H A D | fileio.c | 720 struct dirent *pEntry = readdir(pLvl->pDir); in fsdirNext() local 721 if( pEntry ){ in fsdirNext() 722 if( pEntry->d_name[0]=='.' ){ in fsdirNext() 723 if( pEntry->d_name[1]=='.' && pEntry->d_name[2]=='\0' ) continue; in fsdirNext() 724 if( pEntry->d_name[1]=='\0' ) continue; in fsdirNext() 727 pCur->zPath = sqlite3_mprintf("%s/%s", pLvl->zDir, pEntry->d_name); in fsdirNext()
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_shared.c | 643 FreelistEntry *pEntry = &pFree->aEntry[p->iFree]; in walkFreelistCb() local 644 if( (p->bReverse==0 && pEntry->iBlk>(u32)iBlk) in walkFreelistCb() 645 || (p->bReverse!=0 && pEntry->iBlk<(u32)iBlk) in walkFreelistCb() 650 if( pEntry->iId>=0 in walkFreelistCb() 651 && p->xUsr(p->pUsrctx, pEntry->iBlk, pEntry->iId) in walkFreelistCb() 656 if( pEntry->iBlk==(u32)iBlk ) return 0; in walkFreelistCb() 725 FreelistEntry *pEntry = &p->pFreelist->aEntry[i]; in lsmWalkFreelist() local 726 if( pEntry->iId>=0 && p->xUsr(p->pUsrctx, pEntry->iBlk, pEntry->iId) ){ in lsmWalkFreelist()
|