• Home
  • Raw
  • Download

Lines Matching refs:pTree

47768   struct RowSetEntry *p, *pTree;
47784 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
47785 ppPrevTree = &pTree->pRight;
47786 if( pTree->pLeft==0 ){
47787 pTree->pLeft = rowSetListToTree(p);
47791 rowSetTreeToList(pTree->pLeft, &pAux, &pTail);
47792 pTree->pLeft = 0;
47796 if( pTree==0 ){
47797 *ppPrevTree = pTree = rowSetEntryAlloc(pRowSet);
47798 if( pTree ){
47799 pTree->v = 0;
47800 pTree->pRight = 0;
47801 pTree->pLeft = rowSetListToTree(p);
47814 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
47815 p = pTree->pLeft;
159103 SegmentNode *pTree; /* Pointer to interior tree structure */
160923 SegmentNode *pTree = *ppTree;
160930 if( pTree ){
160931 int nData = pTree->nData; /* Current size of node in bytes */
160936 nPrefix = fts3PrefixCompress(pTree->zTerm, pTree->nTerm, zTerm, nTerm);
160940 if( nReq<=p->nNodeSize || !pTree->zTerm ){
160950 assert( pTree->aData==(char *)&pTree[1] );
160951 pTree->aData = (char *)sqlite3_malloc(nReq);
160952 if( !pTree->aData ){
160957 if( pTree->zTerm ){
160959 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nPrefix);
160962 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nSuffix);
160963 memcpy(&pTree->aData[nData], &zTerm[nPrefix], nSuffix);
160964 pTree->nData = nData + nSuffix;
160965 pTree->nEntry++;
160968 if( pTree->nMalloc<nTerm ){
160969 char *zNew = sqlite3_realloc(pTree->zMalloc, nTerm*2);
160973 pTree->nMalloc = nTerm*2;
160974 pTree->zMalloc = zNew;
160976 pTree->zTerm = pTree->zMalloc;
160977 memcpy(pTree->zTerm, zTerm, nTerm);
160978 pTree->nTerm = nTerm;
160980 pTree->zTerm = (char *)zTerm;
160981 pTree->nTerm = nTerm;
161003 if( pTree ){
161004 SegmentNode *pParent = pTree->pParent;
161006 if( pTree->pParent==0 ){
161007 pTree->pParent = pParent;
161009 pTree->pRight = pNew;
161010 pNew->pLeftmost = pTree->pLeftmost;
161012 pNew->zMalloc = pTree->zMalloc;
161013 pNew->nMalloc = pTree->nMalloc;
161014 pTree->zMalloc = 0;
161028 SegmentNode *pTree,
161035 pTree->aData[nStart] = (char)iHeight;
161036 sqlite3Fts3PutVarint(&pTree->aData[nStart+1], iLeftChild);
161055 SegmentNode *pTree, /* SegmentNode handle */
161065 if( !pTree->pParent ){
161067 int nStart = fts3TreeFinishNode(pTree, iHeight, iLeaf);
161069 *pnRoot = pTree->nData - nStart;
161070 *paRoot = &pTree->aData[nStart];
161075 for(pIter=pTree->pLeftmost; pIter && rc==SQLITE_OK; pIter=pIter->pRight){
161086 p, pTree->pParent, iHeight+1, iFree, iNextFree, piLast, paRoot, pnRoot
161097 static void fts3NodeFree(SegmentNode *pTree){
161098 if( pTree ){
161099 SegmentNode *p = pTree->pLeftmost;
161195 rc = fts3NodeAddTerm(p, &pWriter->pTree, isCopyTerm, zTerm, nPrefix+1);
161271 if( pWriter->pTree ){
161280 rc = fts3NodeWrite(p, pWriter->pTree, 1,
161304 fts3NodeFree(pWriter->pTree);