Lines Matching defs:pList

10246 ** Expr.x.pList is a list of arguments if the expression is an SQL function,
10250 ** Expr.flags mask, then Expr.x.pSelect is valid. Otherwise, Expr.x.pList is
10287 ** the subtrees in Expr.x.pList or Expr.x.pSelect are always separately
10307 ExprList *pList; /* Function arguments or in "<expr> IN (<expr-list)" */
10347 #define EP_xIsSelect 0x0800 /* x.pSelect is valid (otherwise x.pList is) */
35884 PGroupBlockList *pList; /* Owner list */
36131 ** The block pBlock belongs to list pList but is not currently linked in.
36134 static void addBlockToList(PGroupBlockList *pList, PGroupBlock *pBlock){
36136 pBlock->pNext = pList->pFirst;
36137 pList->pFirst = pBlock;
36141 assert( pList->pLast==0 );
36142 pList->pLast = pBlock;
36147 ** If there are no blocks in the list headed by pList, remove pList
36150 static void freeListIfEmpty(PGroup *pGroup, PGroupBlockList *pList){
36152 if( pList->pFirst==0 ){
36154 for(pp=&pGroup->pBlockList; *pp!=pList; pp=&(*pp)->pNext);
36156 sqlite3_free(pList);
36171 PGroupBlockList *pList;
36178 for(pList=pGroup->pBlockList; pList; pList=pList->pNext){
36179 if( pList->nByte==nByte ) break;
36181 if( pList==0 ){
36193 for(pList=pGroup->pBlockList; pList; pList=pList->pNext){
36194 assert( pList->nByte!=nByte );
36200 pList = pNew;
36203 pBlock = pList->pFirst;
36218 freeListIfEmpty(pGroup, pList);
36225 pBlock->pList = pList;
36228 addBlockToList(pList, pBlock);
36239 pPg = (void *)&pBlock->aData[pList->nByte * i];
36246 if( pBlock->mUsed==(((Bitmask)1<<pBlock->nEntry)-1) && pList->pLast!=pBlock ){
36247 assert( pList->pFirst==pBlock );
36249 assert( pList->pLast->pNext==0 );
36250 pList->pFirst = pBlock->pNext;
36251 pList->pFirst->pPrev = 0;
36252 pBlock->pPrev = pList->pLast;
36254 pList->pLast->pNext = pBlock;
36255 pList->pLast = pBlock;
36295 PGroupBlockList *pList = pBlock->pList;
36296 int i = ((u8 *)pPg - pBlock->aData) / pList->nByte;
36298 assert( pPg==(void *)&pBlock->aData[i*pList->nByte] );
36305 if( pList->pFirst==pBlock ){
36306 pList->pFirst = pBlock->pNext;
36307 if( pList->pFirst ) pList->pFirst->pPrev = 0;
36311 if( pList->pLast==pBlock ){
36312 pList->pLast = pBlock->pPrev;
36313 if( pList->pLast ) pList->pLast->pNext = 0;
36325 freeListIfEmpty(pGroup, pList);
36328 addBlockToList(pList, pBlock);
37325 static struct RowSetEntry *rowSetListToTree(struct RowSetEntry *pList){
37330 assert( pList!=0 );
37331 p = pList;
37332 pList = p->pRight;
37334 for(iDepth=1; pList; iDepth++){
37336 p = pList;
37337 pList = p->pRight;
37339 p->pRight = rowSetNDeepTree(&pList, iDepth);
40461 PgHdr *pList; /* List of dirty pages to revert */
40472 pList = sqlite3PcacheDirtyList(pPager->pPCache);
40473 while( pList && rc==SQLITE_OK ){
40474 PgHdr *pNext = pList->pDirty;
40475 rc = pagerUndoCallback((void *)pPager, pList->pgno);
40476 pList = pNext;
40484 ** the contents of the list of pages headed by pList (connected by pDirty),
40493 PgHdr *pList, /* List of frames to log */
40506 for(p=pList; p && p->pDirty; p=p->pDirty){
40517 PgHdr **ppNext = &pList;
40518 for(p=pList; (*ppNext = p); p=p->pDirty){
40521 assert( pList );
40524 if( pList->pgno==1 ) pager_write_changecounter(pList);
40526 pPager->pageSize, pList, nTruncate, isCommit, syncFlags
40530 for(p=pList; p; p=p->pDirty){
40536 pList = sqlite3PcacheDirtyList(pPager->pPCache);
40537 for(p=pList; p; p=p->pDirty){
41521 static int pager_write_pagelist(Pager *pPager, PgHdr *pList){
41548 while( rc==SQLITE_OK && pList ){
41549 Pgno pgno = pList->pgno;
41559 if( pgno<=pPager->dbSize && 0==(pList->flags&PGHDR_DONT_WRITE) ){
41563 assert( (pList->flags&PGHDR_NEED_SYNC)==0 );
41564 if( pList->pgno==1 ) pager_write_changecounter(pList);
41567 CODEC2(pPager, pList->pData, pgno, 6, return SQLITE_NOMEM, pData);
41584 sqlite3BackupUpdate(pPager->pBackup, pgno, (u8*)pList->pData);
41587 PAGERID(pPager), pgno, pager_pagehash(pList)));
41594 pager_set_pagehash(pList);
41595 pList = pList->pDirty;
43286 PgHdr *pList = sqlite3PcacheDirtyList(pPager->pPCache);
43288 if( pList==0 ){
43292 pList = pPageOne;
43293 pList->pDirty = 0;
43296 if( ALWAYS(pList) ){
43297 rc = pagerWalFrames(pPager, pList, pPager->dbSize, 1,
46979 PgHdr *pList, /* List of dirty pages to write */
46987 PgHdr *p; /* Iterator to run through pList with. */
46991 assert( pList );
46995 { int cnt; for(cnt=0, p=pList; p; p=p->pDirty, cnt++){}
47041 for(p=pList; p; p=p->pDirty){
47110 for(p=pList; p && rc==SQLITE_OK; p=p->pDirty){
50229 BtShared *pList;
50240 pList = GLOBAL(BtShared*,sqlite3SharedCacheList);
50241 while( ALWAYS(pList) && pList->pNext!=pBt ){
50242 pList=pList->pNext;
50244 if( ALWAYS(pList) ){
50245 pList->pNext = pBt->pNext;
71714 if( sqlite3WalkExprList(pWalker, pExpr->x.pList) ) return WRC_Abort;
72106 assert( pExpr->x.pList==0 );
72314 ExprList *pList = pExpr->x.pList; /* The argument list */
72315 int n = pList ? pList->nExpr : 0; /* Number of arguments */
72371 sqlite3WalkExprList(pWalker, pList);
73338 ** argument. An expression with no children, Expr.pList or
73350 heightOfExprList(p->x.pList, &nHeight);
73534 SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
73540 sqlite3ExprListDelete(db, pList); /* Avoid memory leak when malloc fails */
73543 pNew->x.pList = pList;
73649 sqlite3ExprListDelete(db, p->x.pList);
73712 if( p->pLeft || p->pRight || p->pColl || p->x.pList ){
73745 ** descended from the Expr.x.pList or Expr.x.pSelect variables).
73819 /* Fill in the pNew->x.pSelect or pNew->x.pList member. */
73823 pNew->x.pList = sqlite3ExprListDup(db, p->x.pList, isReduced);
73994 ** Add a new element to the end of an expression list. If pList is
74003 ExprList *pList, /* List to which to append. Might be NULL */
74007 if( pList==0 ){
74008 pList = sqlite3DbMallocZero(db, sizeof(ExprList) );
74009 if( pList==0 ){
74012 assert( pList->nAlloc==0 );
74014 if( pList->nAlloc<=pList->nExpr ){
74016 int n = pList->nAlloc*2 + 4;
74017 a = sqlite3DbRealloc(db, pList->a, n*sizeof(pList->a[0]));
74021 pList->a = a;
74022 pList->nAlloc = sqlite3DbMallocSize(db, a)/sizeof(a[0]);
74024 assert( pList->a!=0 );
74026 struct ExprList_item *pItem = &pList->a[pList->nExpr++];
74030 return pList;
74035 sqlite3ExprListDelete(db, pList);
74043 ** pList might be NULL following an OOM error. But pName should never be
74049 ExprList *pList, /* List to which to add the span. */
74053 assert( pList!=0 || pParse->db->mallocFailed!=0 );
74054 if( pList ){
74056 assert( pList->nExpr>0 );
74057 pItem = &pList->a[pList->nExpr-1];
74068 ** pList might be NULL following an OOM error. But pSpan should never be
74074 ExprList *pList, /* List to which to add the span. */
74078 assert( pList!=0 || db->mallocFailed!=0 );
74079 if( pList ){
74080 struct ExprList_item *pItem = &pList->a[pList->nExpr-1];
74081 assert( pList->nExpr>0 );
74109 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
74112 if( pList==0 ) return;
74113 assert( pList->a!=0 || (pList->nExpr==0 && pList->nAlloc==0) );
74114 assert( pList->nExpr<=pList->nAlloc );
74115 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
74120 sqlite3DbFree(db, pList->a);
74121 sqlite3DbFree(db, pList);
74682 }else if( ALWAYS(pExpr->x.pList!=0) ){
74691 ExprList *pList = pExpr->x.pList;
74704 for(i=pList->nExpr, pItem=pList->a; i>0; i--, pItem++){
75563 pFarg = pExpr->x.pList;
75672 ** Y is stored in pExpr->pList->a[0].pExpr.
75673 ** Z is stored in pExpr->pList->a[1].pExpr.
75677 struct ExprList_item *pLItem = pExpr->x.pList->a;
75773 ** Ei is in pExpr->pList->a[i*2] and Ri is pExpr->pList->a[i*2+1].
75792 assert( !ExprHasProperty(pExpr, EP_xIsSelect) && pExpr->x.pList );
75793 assert((pExpr->x.pList->nExpr % 2) == 0);
75794 assert(pExpr->x.pList->nExpr > 0);
75795 pEList = pExpr->x.pList;
76032 ExprList *pList = pExpr->x.pList;
76034 if( pList ){
76035 int i = pList->nExpr;
76036 struct ExprList_item *pItem = pList->a;
76092 ExprList *pList, /* The expression list to be coded */
76098 assert( pList!=0 );
76101 n = pList->nExpr;
76102 for(pItem=pList->a, i=0; i<n; i++, pItem++){
76145 compLeft.pRight = pExpr->x.pList->a[0].pExpr;
76148 compRight.pRight = pExpr->x.pList->a[1].pExpr;
76468 if( sqlite3ExprListCompare(pA->x.pList, pB->x.pList) ) return 2;
76655 pExpr->x.pList ? pExpr->x.pList->nExpr : 0, enc, 0);
76710 SQLITE_PRIVATE void sqlite3ExprAnalyzeAggList(NameContext *pNC, ExprList *pList){
76713 if( pList ){
76714 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
78784 SrcList *pList /* The Source list to check and modify */
78790 if( NEVER(pList==0) ) return 0;
78792 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
78839 if( sqlite3FixExprList(pFix, pExpr->x.pList) ) return 1;
78850 ExprList *pList /* The expression to be fixed to one database */
78854 if( pList==0 ) return 0;
78855 for(i=0, pItem=pList->a; i<pList->nExpr; i++, pItem++){
80254 ** Designate the PRIMARY KEY for the table. pList is a list of names
80255 ** of columns that form the primary key. If pList is NULL, then the
80273 ExprList *pList, /* List of field names to be indexed */
80288 if( pList==0 ){
80292 for(i=0; i<pList->nExpr; i++){
80294 if( sqlite3StrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ){
80302 if( pList->nExpr>1 ) iCol = -1;
80320 p = sqlite3CreateIndex(pParse, 0, 0, 0, pList, onError, 0, 0, sortOrder, 0);
80324 pList = 0;
80328 sqlite3ExprListDelete(pParse->db, pList);
81571 ** pList is a list of columns to be indexed. pList will be NULL if this
81584 ExprList *pList, /* A list of columns to be indexed */
81588 int sortOrder, /* Sort order of primary key when pList==NULL */
81604 struct ExprList_item *pListItem; /* For looping over pList */
81743 /* If pList==0, it means this routine was called to make a primary
81747 if( pList==0 ){
81750 pList = sqlite3ExprListAppend(pParse, 0, 0);
81751 if( pList==0 ) goto exit_create_index;
81752 sqlite3ExprListSetName(pParse, pList, &nullId, 0);
81753 pList->a[0].sortOrder = (u8)sortOrder;
81759 for(i=0; i<pList->nExpr; i++){
81760 Expr *pExpr = pList->a[i].pExpr;
81775 nCol = pList->nExpr;
81796 pIndex->nColumn = pList->nExpr;
81820 for(i=0, pListItem=pList->a; i<pList->nExpr; i++, pListItem++){
82043 sqlite3ExprListDelete(db, pList);
82202 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
82204 if( pList==0 ){
82205 pList = sqlite3DbMallocZero(db, sizeof(IdList) );
82206 if( pList==0 ) return 0;
82207 pList->nAlloc = 0;
82209 pList->a = sqlite3ArrayAllocate(
82211 pList->a,
82212 sizeof(pList->a[0]),
82214 &pList->nId,
82215 &pList->nAlloc,
82219 sqlite3IdListDelete(db, pList);
82222 pList->a[i].zName = sqlite3NameFromToken(db, pToken);
82223 return pList;
82229 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
82231 if( pList==0 ) return;
82232 for(i=0; i<pList->nId; i++){
82233 sqlite3DbFree(db, pList->a[i].zName);
82235 sqlite3DbFree(db, pList->a);
82236 sqlite3DbFree(db, pList);
82240 ** Return the index in pList of the identifier named zId. Return -1
82243 SQLITE_PRIVATE int sqlite3IdListIndex(IdList *pList, const char *zName){
82245 if( pList==0 ) return -1;
82246 for(i=0; i<pList->nId; i++){
82247 if( sqlite3StrICmp(pList->a[i].zName, zName)==0 ) return i;
82325 ** a new one. If an OOM error does occurs, then the prior value of pList
82355 SrcList *pList, /* Append to this SrcList. NULL creates a new SrcList */
82361 if( pList==0 ){
82362 pList = sqlite3DbMallocZero(db, sizeof(SrcList) );
82363 if( pList==0 ) return 0;
82364 pList->nAlloc = 1;
82366 pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc);
82368 sqlite3SrcListDelete(db, pList);
82371 pItem = &pList->a[pList->nSrc-1];
82382 return pList;
82388 SQLITE_PRIVATE void sqlite3SrcListAssignCursors(Parse *pParse, SrcList *pList){
82391 assert(pList || pParse->db->mallocFailed );
82392 if( pList ){
82393 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
82406 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
82409 if( pList==0 ) return;
82410 for(pItem=pList->a, i=0; i<pList->nSrc; i++, pItem++){
82420 sqlite3DbFree(db, pList);
85533 || !pExpr->x.pList
85534 || pExpr->x.pList->nExpr!=2
86651 ExprList *pList = 0; /* Changes list if ON UPDATE CASCADE */
86724 pList = sqlite3ExprListAppend(pParse, pList, pNew);
86725 sqlite3ExprListSetName(pParse, pList, &tFromCol, 0);
86768 pStep->pExprList = sqlite3ExprListDup(db, pList, EXPRDUP_REDUCE);
86781 sqlite3ExprListDelete(db, pList);
87221 ** The pList parameter holds EXPRLIST in the first form of the INSERT
87222 ** statement above, and pSelect is NULL. For the second form, pList is
87316 ExprList *pList, /* List of values to be inserted */
87434 assert( pList==0 );
87553 nColumn = pList ? pList->nExpr : 0;
87555 if( sqlite3ResolveExprNames(&sNC, pList->a[i].pExpr) ){
87706 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regCols);
87729 if( (!useTempTable && !pList) || (pColumn && j>=pColumn->nId) ){
87735 sqlite3ExprCodeAndCache(pParse, pList->a[j].pExpr, regCols+i+1);
87773 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regRowid);
87840 sqlite3ExprCode(pParse, pList->a[j].pExpr, iRegStore);
87923 sqlite3ExprListDelete(db, pList);
92733 IdList *pList = pRight->pUsing;
92734 for(j=0; j<pList->nId; j++){
92740 zName = pList->a[j].zName;
93102 static KeyInfo *keyInfoFromExprList(Parse *pParse, ExprList *pList){
93109 nExpr = pList->nExpr;
93116 for(i=0, pItem=pList->a; i<nExpr; i++, pItem++){
94888 substExprList(db, pExpr->x.pList, iTable, pEList);
94895 ExprList *pList, /* List to scan and in which to make substitutes */
94900 if( pList==0 ) return;
94901 for(i=0; i<pList->nExpr; i++){
94902 pList->a[i].pExpr = substExpr(db, pList->a[i].pExpr, iTable, pEList);
95055 ExprList *pList; /* The result set of the outer query */
95348 pList = pParent->pEList;
95349 for(i=0; i<pList->nExpr; i++){
95350 if( pList->a[i].zName==0 ){
95351 const char *zSpan = pList->a[i].zSpan;
95353 pList->a[i].zName = sqlite3DbStrDup(db, zSpan);
95433 pEList = pExpr->x.pList;
95893 if( pE->x.pList==0 || pE->x.pList->nExpr!=1 ){
95898 KeyInfo *pKeyInfo = keyInfoFromExprList(pParse, pE->x.pList);
95915 ExprList *pList = pF->pExpr->x.pList;
95917 sqlite3VdbeAddOp4(v, OP_AggFinal, pF->iMem, pList ? pList->nExpr : 0, 0,
95938 ExprList *pList = pF->pExpr->x.pList;
95940 if( pList ){
95941 nArg = pList->nExpr;
95943 sqlite3ExprCodeExprList(pParse, pList, regAgg, 1);
95957 assert( pList!=0 ); /* pList!=0 if pF->pFunc has NEEDCOLL */
95958 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){
96455 sqlite3ExprAnalyzeAggList(&sNC, sAggInfo.aFunc[i].pExpr->x.pList);
96763 pMinMax = sqlite3ExprListDup(db, p->pEList->a[0].pExpr->x.pList,0);
96870 SQLITE_PRIVATE void sqlite3PrintExprList(ExprList *pList){
96872 for(i=0; i<pList->nExpr; i++){
96873 sqlite3PrintExpr(pList->a[i].pExpr);
96874 if( i<pList->nExpr-1 ){
97183 Trigger *pList = 0; /* List of triggers to return */
97197 pTrig->pNext = (pList ? pList : pTab->pTrigger);
97198 pList = pTrig;
97203 return (pList ? pList : pTab->pTrigger);
97785 Trigger *pList = 0;
97789 pList = sqlite3TriggerList(pParse, pTab);
97791 assert( pList==0 || IsVirtual(pTab)==0 );
97792 for(p=pList; p; p=p->pNext){
97800 return (mask ? pList : 0);
100798 mask |= exprListTableUsage(pMaskSet, p->x.pList);
100802 static Bitmask exprListTableUsage(WhereMaskSet *pMaskSet, ExprList *pList){
100805 if( pList ){
100806 for(i=0; i<pList->nExpr; i++){
100807 mask |= exprTableUsage(pMaskSet, pList->a[i].pExpr);
101003 ExprList *pList; /* List of operands to the LIKE operator */
101017 pList = pExpr->x.pList;
101018 pLeft = pList->a[1].pExpr;
101026 pRight = pList->a[0].pExpr;
101092 ExprList *pList;
101100 pList = pExpr->x.pList;
101101 if( pList->nExpr!=2 ){
101104 if( pList->a[1].pExpr->op != TK_COLUMN ){
101394 ExprList *pList = 0; /* The RHS of the IN operator */
101404 pList = sqlite3ExprListAppend(pWC->pParse, pList, pDup);
101414 pNew->x.pList = pList;
101422 sqlite3ExprListDelete(db, pList);
101480 pTerm->prereqRight = exprListTableUsage(pMaskSet, pExpr->x.pList);
101555 ExprList *pList = pExpr->x.pList;
101558 assert( pList!=0 );
101559 assert( pList->nExpr==2 );
101565 sqlite3ExprDup(db, pList->a[i].pExpr, 0), 0);
101609 pLeft = pExpr->x.pList->a[1].pExpr;
101664 pRight = pExpr->x.pList->a[0].pExpr;
101665 pLeft = pExpr->x.pList->a[1].pExpr;
101736 ** Return TRUE if any of the expressions in pList->a[iFirst...] contain
101740 ExprList *pList, /* Search expressions in ths list */
101746 while( iFirst<pList->nExpr ){
101747 if( (exprTableUsage(pMaskSet, pList->a[iFirst++].pExpr)&allowed)!=0 ){
101761 ** If such an expression is found, its index in pList->a[] is returned. If
101766 ExprList *pList, /* Expression list to search */
101774 for(i=0; i<pList->nExpr; i++){
101775 Expr *p = pList->a[i].pExpr;
103120 ExprList *pList, /* The value list on the RHS of "x IN (v1,v2,v3,...)" */
103139 for(i=0; i<pList->nExpr; i++){
103141 rc = valueFromExpr(pParse, pList->a[i].pExpr, aff, &pVal);
103376 }else if( ALWAYS(pExpr->x.pList && pExpr->x.pList->nExpr) ){
103378 nInMul *= pExpr->x.pList->nExpr;
103480 whereInScanEst(pParse, pProbe, pFirstTerm->pExpr->x.pList, &nRow);
108252 ExprList *pList;
108253 pList = sqlite3ExprListAppend(pParse,0, yymsp[0].minor.yy118.pExpr);
108254 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-2].minor.yy118.pExpr);
108255 yygotominor.yy118.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-1].minor.yy342.eOperator);
108264 ExprList *pList;
108265 pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy118.pExpr);
108266 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-4].minor.yy118.pExpr);
108267 pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy118.pExpr);
108268 yygotominor.yy118.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-3].minor.yy342.eOperator);
108305 ExprList *pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy118.pExpr);
108306 pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy118.pExpr);
108309 yygotominor.yy118.pExpr->x.pList = pList;
108311 sqlite3ExprListDelete(pParse->db, pList);
108334 yygotominor.yy118.pExpr->x.pList = yymsp[-1].minor.yy322;
108408 yygotominor.yy118.pExpr->x.pList = yymsp[-2].minor.yy322;
114294 sqlite3_int64 iDocid; /* Current docid (if pList!=0) */
114295 int bFreeList; /* True if pList should be sqlite3_free()d */
114296 char *pList; /* Pointer to position list following iDocid */
117556 ** Arguments pList/nList contain the doclist for token iToken of phrase p.
117559 ** This function assumes that pList points to a buffer allocated using
117565 Fts3Phrase *p, /* Phrase to merge pList/nList into */
117566 int iToken, /* Token pList/nList corresponds to */
117567 char *pList, /* Pointer to doclist */
117568 int nList /* Number of bytes in pList */
117572 if( pList==0 ){
117579 p->doclist.aAll = pList;
117584 sqlite3_free(pList);
117597 pRight = pList;
117603 pLeft = pList;
117654 ** means that the phrase does not appear in the current row, doclist.pList
117673 char *pList;
117675 rc = sqlite3Fts3DeferredTokenList(pDeferred, &pList, &nList);
117678 if( pList==0 ){
117680 pPhrase->doclist.pList = 0;
117685 aPoslist = pList;
117689 char *aOut = pList;
117696 aPoslist = pList;
117700 pPhrase->doclist.pList = 0;
117712 pPhrase->doclist.pList = aPoslist;
117724 p2 = pPhrase->doclist.pList;
117727 p1 = pPhrase->doclist.pList;
117738 pPhrase->doclist.pList = aOut;
117741 pPhrase->doclist.nList = (aOut - pPhrase->doclist.pList);
117744 pPhrase->doclist.pList = 0;
117878 &pDL->iDocid, &pDL->pList, &pDL->nList
117880 if( rc==SQLITE_OK && !pDL->pList ){
117887 pDL->pList = pDL->pNextDocid;
117908 pDL->pList = pIter;
117910 pDL->nList = (pIter - pDL->pList);
118192 char *pList = 0;
118193 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
118194 assert( rc==SQLITE_OK || pList==0 );
118197 fts3EvalPhraseMergeToken(pTab, pTC->pPhrase, pTC->iToken,pList,nList);
118273 sqlite3_free(pPhrase->doclist.pList);
118275 pPhrase->doclist.pList = 0;
118316 assert( pPhrase->doclist.pList );
118318 p2 = pOut = pPhrase->doclist.pList;
118323 nNew = (pOut - pPhrase->doclist.pList) - 1;
118324 assert( pPhrase->doclist.pList[nNew]=='\0' );
118326 memset(&pPhrase->doclist.pList[nNew], 0, pPhrase->doclist.nList - nNew);
118328 *paPoslist = pPhrase->doclist.pList;
118352 ** FTs3Expr.pPhrase->doclist.nList (length of pList in bytes)
118353 ** FTs3Expr.pPhrase->doclist.pList (pointer to position list)
118492 ** (Fts3Expr->pPhrase.doclist.pList/nList) for each phrase in the expression.
118543 char *aPoslist = p->pPhrase->doclist.pList;
118552 aPoslist = pExpr->pRight->pPhrase->doclist.pList;
118652 bHit = (pPhrase->doclist.pList!=0);
118784 ** found in Fts3Expr.pPhrase->doclist.pList for each of the phrase
118790 if( pPhrase && pPhrase->doclist.pList ){
118792 char *p = pPhrase->doclist.pList;
118997 char *pIter = pPhrase->doclist.pList;
122350 PendingList *pList; /* Doclist is assembled here */
122845 static void fts3PendingListDelete(PendingList *pList){
122846 sqlite3_free(pList);
122860 PendingList *pList;
122863 pList = (PendingList *)fts3HashFind(pHash, zToken, nToken);
122864 if( pList ){
122865 p->nPendingData -= (pList->nData + nToken + sizeof(Fts3HashElem));
122867 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
122868 if( pList==fts3HashInsert(pHash, zToken, nToken, pList) ){
122873 sqlite3_free(pList);
122878 p->nPendingData += (pList->nData + nToken + sizeof(Fts3HashElem));
122992 PendingList *pList = (PendingList *)fts3HashData(pElem);
122993 fts3PendingListDelete(pList);
123357 PendingList *pList = (PendingList *)fts3HashData(pElem);
123360 pReader->nNode = pReader->nDoclist = pList->nData + 1;
123361 pReader->aNode = pReader->aDoclist = pList->aData;
124501 char *pList = *ppList;
124503 char *pEnd = &pList[nList];
124505 char *p = pList;
124513 nList = (int)(p - pList);
124517 nList -= (int)(p - pList);
124518 pList = p;
124522 p = &pList[1];
124526 *ppList = pList;
124539 char *pList,
124550 memcpy(pMsr->aBuffer, pList, nList);
124581 char *pList;
124586 rc = fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
124600 fts3ColumnFilter(pMsr->iColFilter, &pList, &nList);
124605 rc = fts3MsrBufferData(pMsr, pList, nList+1);
124610 *paPoslist = pList;
124827 char *pList;
124831 fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
124842 fts3ColumnFilter(pFilter->iCol, &pList, &nList);
124871 memcpy(&pCsr->aBuffer[nDoclist], pList, nList);
125212 fts3PendingListDelete(pDef->pList);
125213 pDef->pList = 0;
125226 fts3PendingListDelete(pDef->pList);
125273 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
125282 if( pDef->pList ){
125283 rc = fts3PendingListAppendVarint(&pDef->pList, 0);
125303 if( p->pList==0 ){
125307 pRet = (char *)sqlite3_malloc(p->pList->nData);
125310 nSkip = sqlite3Fts3GetVarint(p->pList->aData, &dummy);
125311 *pnData = p->pList->nData - nSkip;
125314 memcpy(pRet, &p->pList->aData[nSkip], *pnData);
125596 char *pList; /* Pointer to start of phrase position list */
125898 pPhrase->pList = pCsr;
125905 assert( pPhrase->pList==0 && pPhrase->pHead==0 && pPhrase->pTail==0 );
126806 char *pList; /* Position-list */
126807 int iPos; /* Position just read from pList */
126826 char *pList; /* Pointer to position list for phrase */
126830 pList = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol);
126832 if( pList ){
126833 fts3GetDeltaPosition(&pList, &iPos);
126840 pT->pList = pList;
126933 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
126944 if( 0==(0xFE&*pTerm->pList) ){
126945 pTerm->pList = 0;
126947 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);