Lines Matching refs:pTree

41383     struct RowSetEntry *pTree = p->pForest->pLeft;
41384 if( pTree ){
41386 rowSetTreeToList(pTree, &pHead, &pTail);
41431 struct RowSetEntry *p, *pTree;
41445 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
41446 ppPrevTree = &pTree->pRight;
41447 if( pTree->pLeft==0 ){
41448 pTree->pLeft = rowSetListToTree(p);
41452 rowSetTreeToList(pTree->pLeft, &pAux, &pTail);
41453 pTree->pLeft = 0;
41457 if( pTree==0 ){
41458 *ppPrevTree = pTree = rowSetEntryAlloc(pRowSet);
41459 if( pTree ){
41460 pTree->v = 0;
41461 pTree->pRight = 0;
41462 pTree->pLeft = rowSetListToTree(p);
41475 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
41476 p = pTree->pLeft;
143145 SegmentNode *pTree; /* Pointer to interior tree structure */
144947 SegmentNode *pTree = *ppTree;
144954 if( pTree ){
144955 int nData = pTree->nData; /* Current size of node in bytes */
144960 nPrefix = fts3PrefixCompress(pTree->zTerm, pTree->nTerm, zTerm, nTerm);
144964 if( nReq<=p->nNodeSize || !pTree->zTerm ){
144974 assert( pTree->aData==(char *)&pTree[1] );
144975 pTree->aData = (char *)sqlite3_malloc(nReq);
144976 if( !pTree->aData ){
144981 if( pTree->zTerm ){
144983 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nPrefix);
144986 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nSuffix);
144987 memcpy(&pTree->aData[nData], &zTerm[nPrefix], nSuffix);
144988 pTree->nData = nData + nSuffix;
144989 pTree->nEntry++;
144992 if( pTree->nMalloc<nTerm ){
144993 char *zNew = sqlite3_realloc(pTree->zMalloc, nTerm*2);
144997 pTree->nMalloc = nTerm*2;
144998 pTree->zMalloc = zNew;
145000 pTree->zTerm = pTree->zMalloc;
145001 memcpy(pTree->zTerm, zTerm, nTerm);
145002 pTree->nTerm = nTerm;
145004 pTree->zTerm = (char *)zTerm;
145005 pTree->nTerm = nTerm;
145027 if( pTree ){
145028 SegmentNode *pParent = pTree->pParent;
145030 if( pTree->pParent==0 ){
145031 pTree->pParent = pParent;
145033 pTree->pRight = pNew;
145034 pNew->pLeftmost = pTree->pLeftmost;
145036 pNew->zMalloc = pTree->zMalloc;
145037 pNew->nMalloc = pTree->nMalloc;
145038 pTree->zMalloc = 0;
145052 SegmentNode *pTree,
145059 pTree->aData[nStart] = (char)iHeight;
145060 sqlite3Fts3PutVarint(&pTree->aData[nStart+1], iLeftChild);
145079 SegmentNode *pTree, /* SegmentNode handle */
145089 if( !pTree->pParent ){
145091 int nStart = fts3TreeFinishNode(pTree, iHeight, iLeaf);
145093 *pnRoot = pTree->nData - nStart;
145094 *paRoot = &pTree->aData[nStart];
145099 for(pIter=pTree->pLeftmost; pIter && rc==SQLITE_OK; pIter=pIter->pRight){
145110 p, pTree->pParent, iHeight+1, iFree, iNextFree, piLast, paRoot, pnRoot
145121 static void fts3NodeFree(SegmentNode *pTree){
145122 if( pTree ){
145123 SegmentNode *p = pTree->pLeftmost;
145219 rc = fts3NodeAddTerm(p, &pWriter->pTree, isCopyTerm, zTerm, nPrefix+1);
145295 if( pWriter->pTree ){
145304 rc = fts3NodeWrite(p, pWriter->pTree, 1,
145328 fts3NodeFree(pWriter->pTree);