Lines Matching refs:pTree

41401     struct RowSetEntry *pTree = p->pForest->pLeft;
41402 if( pTree ){
41404 rowSetTreeToList(pTree, &pHead, &pTail);
41449 struct RowSetEntry *p, *pTree;
41463 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
41464 ppPrevTree = &pTree->pRight;
41465 if( pTree->pLeft==0 ){
41466 pTree->pLeft = rowSetListToTree(p);
41470 rowSetTreeToList(pTree->pLeft, &pAux, &pTail);
41471 pTree->pLeft = 0;
41475 if( pTree==0 ){
41476 *ppPrevTree = pTree = rowSetEntryAlloc(pRowSet);
41477 if( pTree ){
41478 pTree->v = 0;
41479 pTree->pRight = 0;
41480 pTree->pLeft = rowSetListToTree(p);
41493 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
41494 p = pTree->pLeft;
143175 SegmentNode *pTree; /* Pointer to interior tree structure */
144977 SegmentNode *pTree = *ppTree;
144984 if( pTree ){
144985 int nData = pTree->nData; /* Current size of node in bytes */
144990 nPrefix = fts3PrefixCompress(pTree->zTerm, pTree->nTerm, zTerm, nTerm);
144994 if( nReq<=p->nNodeSize || !pTree->zTerm ){
145004 assert( pTree->aData==(char *)&pTree[1] );
145005 pTree->aData = (char *)sqlite3_malloc(nReq);
145006 if( !pTree->aData ){
145011 if( pTree->zTerm ){
145013 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nPrefix);
145016 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nSuffix);
145017 memcpy(&pTree->aData[nData], &zTerm[nPrefix], nSuffix);
145018 pTree->nData = nData + nSuffix;
145019 pTree->nEntry++;
145022 if( pTree->nMalloc<nTerm ){
145023 char *zNew = sqlite3_realloc(pTree->zMalloc, nTerm*2);
145027 pTree->nMalloc = nTerm*2;
145028 pTree->zMalloc = zNew;
145030 pTree->zTerm = pTree->zMalloc;
145031 memcpy(pTree->zTerm, zTerm, nTerm);
145032 pTree->nTerm = nTerm;
145034 pTree->zTerm = (char *)zTerm;
145035 pTree->nTerm = nTerm;
145057 if( pTree ){
145058 SegmentNode *pParent = pTree->pParent;
145060 if( pTree->pParent==0 ){
145061 pTree->pParent = pParent;
145063 pTree->pRight = pNew;
145064 pNew->pLeftmost = pTree->pLeftmost;
145066 pNew->zMalloc = pTree->zMalloc;
145067 pNew->nMalloc = pTree->nMalloc;
145068 pTree->zMalloc = 0;
145082 SegmentNode *pTree,
145089 pTree->aData[nStart] = (char)iHeight;
145090 sqlite3Fts3PutVarint(&pTree->aData[nStart+1], iLeftChild);
145109 SegmentNode *pTree, /* SegmentNode handle */
145119 if( !pTree->pParent ){
145121 int nStart = fts3TreeFinishNode(pTree, iHeight, iLeaf);
145123 *pnRoot = pTree->nData - nStart;
145124 *paRoot = &pTree->aData[nStart];
145129 for(pIter=pTree->pLeftmost; pIter && rc==SQLITE_OK; pIter=pIter->pRight){
145140 p, pTree->pParent, iHeight+1, iFree, iNextFree, piLast, paRoot, pnRoot
145151 static void fts3NodeFree(SegmentNode *pTree){
145152 if( pTree ){
145153 SegmentNode *p = pTree->pLeftmost;
145249 rc = fts3NodeAddTerm(p, &pWriter->pTree, isCopyTerm, zTerm, nPrefix+1);
145325 if( pWriter->pTree ){
145334 rc = fts3NodeWrite(p, pWriter->pTree, 1,
145358 fts3NodeFree(pWriter->pTree);