Lines Matching defs:pList

10474 ** Expr.x.pList is a list of arguments if the expression is an SQL function,
10478 ** Expr.flags mask, then Expr.x.pSelect is valid. Otherwise, Expr.x.pList is
10515 ** the subtrees in Expr.x.pList or Expr.x.pSelect are always separately
10535 ExprList *pList; /* Function arguments or in "<expr> IN (<expr-list)" */
10575 #define EP_xIsSelect 0x0800 /* x.pSelect is valid (otherwise x.pList is) */
38086 static struct RowSetEntry *rowSetListToTree(struct RowSetEntry *pList){
38091 assert( pList!=0 );
38092 p = pList;
38093 pList = p->pRight;
38095 for(iDepth=1; pList; iDepth++){
38097 p = pList;
38098 pList = p->pRight;
38100 p->pRight = rowSetNDeepTree(&pList, iDepth);
41241 PgHdr *pList; /* List of dirty pages to revert */
41252 pList = sqlite3PcacheDirtyList(pPager->pPCache);
41253 while( pList && rc==SQLITE_OK ){
41254 PgHdr *pNext = pList->pDirty;
41255 rc = pagerUndoCallback((void *)pPager, pList->pgno);
41256 pList = pNext;
41264 ** the contents of the list of pages headed by pList (connected by pDirty),
41273 PgHdr *pList, /* List of frames to log */
41283 assert( pList );
41286 for(p=pList; p && p->pDirty; p=p->pDirty){
41297 PgHdr **ppNext = &pList;
41298 for(p=pList; (*ppNext = p); p=p->pDirty){
41301 assert( pList );
41304 if( pList->pgno==1 ) pager_write_changecounter(pList);
41306 pPager->pageSize, pList, nTruncate, isCommit, pPager->walSyncFlags
41310 for(p=pList; p; p=p->pDirty){
41316 pList = sqlite3PcacheDirtyList(pPager->pPCache);
41317 for(p=pList; p; p=p->pDirty){
42309 static int pager_write_pagelist(Pager *pPager, PgHdr *pList){
42336 while( rc==SQLITE_OK && pList ){
42337 Pgno pgno = pList->pgno;
42347 if( pgno<=pPager->dbSize && 0==(pList->flags&PGHDR_DONT_WRITE) ){
42351 assert( (pList->flags&PGHDR_NEED_SYNC)==0 );
42352 if( pList->pgno==1 ) pager_write_changecounter(pList);
42355 CODEC2(pPager, pList->pData, pgno, 6, return SQLITE_NOMEM, pData);
42372 sqlite3BackupUpdate(pPager->pBackup, pgno, (u8*)pList->pData);
42375 PAGERID(pPager), pgno, pager_pagehash(pList)));
42382 pager_set_pagehash(pList);
42383 pList = pList->pDirty;
44086 PgHdr *pList = sqlite3PcacheDirtyList(pPager->pPCache);
44088 if( pList==0 ){
44092 pList = pPageOne;
44093 pList->pDirty = 0;
44096 if( ALWAYS(pList) ){
44097 rc = pagerWalFrames(pPager, pList, pPager->dbSize, 1);
47913 PgHdr *pList, /* List of dirty pages to write */
47920 PgHdr *p; /* Iterator to run through pList with. */
47927 assert( pList );
47935 { int cnt; for(cnt=0, p=pList; p; p=p->pDirty, cnt++){}
48003 for(p=pList; p; p=p->pDirty){
48062 for(p=pList; p && rc==SQLITE_OK; p=p->pDirty){
51200 BtShared *pList;
51211 pList = GLOBAL(BtShared*,sqlite3SharedCacheList);
51212 while( ALWAYS(pList) && pList->pNext!=pBt ){
51213 pList=pList->pNext;
51215 if( ALWAYS(pList) ){
51216 pList->pNext = pBt->pNext;
72959 if( sqlite3WalkExprList(pWalker, pExpr->x.pList) ) return WRC_Abort;
73356 assert( pExpr->x.pList==0 );
73564 ExprList *pList = pExpr->x.pList; /* The argument list */
73565 int n = pList ? pList->nExpr : 0; /* Number of arguments */
73621 sqlite3WalkExprList(pWalker, pList);
74588 ** argument. An expression with no children, Expr.pList or
74600 heightOfExprList(p->x.pList, &nHeight);
74785 SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
74791 sqlite3ExprListDelete(db, pList); /* Avoid memory leak when malloc fails */
74794 pNew->x.pList = pList;
74900 sqlite3ExprListDelete(db, p->x.pList);
74963 if( p->pLeft || p->pRight || p->pColl || p->x.pList ){
74996 ** descended from the Expr.x.pList or Expr.x.pSelect variables).
75070 /* Fill in the pNew->x.pSelect or pNew->x.pList member. */
75074 pNew->x.pList = sqlite3ExprListDup(db, p->x.pList, isReduced);
75247 ** Add a new element to the end of an expression list. If pList is
75256 ExprList *pList, /* List to which to append. Might be NULL */
75260 if( pList==0 ){
75261 pList = sqlite3DbMallocZero(db, sizeof(ExprList) );
75262 if( pList==0 ){
75265 assert( pList->nAlloc==0 );
75267 if( pList->nAlloc<=pList->nExpr ){
75269 int n = pList->nAlloc*2 + 4;
75270 a = sqlite3DbRealloc(db, pList->a, n*sizeof(pList->a[0]));
75274 pList->a = a;
75275 pList->nAlloc = sqlite3DbMallocSize(db, a)/sizeof(a[0]);
75277 assert( pList->a!=0 );
75279 struct ExprList_item *pItem = &pList->a[pList->nExpr++];
75283 return pList;
75288 sqlite3ExprListDelete(db, pList);
75296 ** pList might be NULL following an OOM error. But pName should never be
75302 ExprList *pList, /* List to which to add the span. */
75306 assert( pList!=0 || pParse->db->mallocFailed!=0 );
75307 if( pList ){
75309 assert( pList->nExpr>0 );
75310 pItem = &pList->a[pList->nExpr-1];
75321 ** pList might be NULL following an OOM error. But pSpan should never be
75327 ExprList *pList, /* List to which to add the span. */
75331 assert( pList!=0 || db->mallocFailed!=0 );
75332 if( pList ){
75333 struct ExprList_item *pItem = &pList->a[pList->nExpr-1];
75334 assert( pList->nExpr>0 );
75362 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
75365 if( pList==0 ) return;
75366 assert( pList->a!=0 || (pList->nExpr==0 && pList->nAlloc==0) );
75367 assert( pList->nExpr<=pList->nAlloc );
75368 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
75373 sqlite3DbFree(db, pList->a);
75374 sqlite3DbFree(db, pList);
75951 }else if( ALWAYS(pExpr->x.pList!=0) ){
75960 ExprList *pList = pExpr->x.pList;
75973 for(i=pList->nExpr, pItem=pList->a; i>0; i--, pItem++){
76832 pFarg = pExpr->x.pList;
76941 ** Y is stored in pExpr->pList->a[0].pExpr.
76942 ** Z is stored in pExpr->pList->a[1].pExpr.
76946 struct ExprList_item *pLItem = pExpr->x.pList->a;
77042 ** Ei is in pExpr->pList->a[i*2] and Ri is pExpr->pList->a[i*2+1].
77061 assert( !ExprHasProperty(pExpr, EP_xIsSelect) && pExpr->x.pList );
77062 assert((pExpr->x.pList->nExpr % 2) == 0);
77063 assert(pExpr->x.pList->nExpr > 0);
77064 pEList = pExpr->x.pList;
77344 pFarg = pExpr->x.pList;
77375 sqlite3ExplainExprList(pOut, pExpr->x.pList);
77390 ** Y is stored in pExpr->pList->a[0].pExpr.
77391 ** Z is stored in pExpr->pList->a[1].pExpr.
77395 Expr *pY = pExpr->x.pList->a[0].pExpr;
77396 Expr *pZ = pExpr->x.pList->a[1].pExpr;
77422 sqlite3ExplainExprList(pOut, pExpr->x.pList);
77457 SQLITE_PRIVATE void sqlite3ExplainExprList(Vdbe *pOut, ExprList *pList){
77459 if( pList==0 || pList->nExpr==0 ){
77462 }else if( pList->nExpr==1 ){
77463 sqlite3ExplainExpr(pOut, pList->a[0].pExpr);
77466 for(i=0; i<pList->nExpr; i++){
77469 sqlite3ExplainExpr(pOut, pList->a[i].pExpr);
77471 if( i<pList->nExpr-1 ){
77559 ExprList *pList = pExpr->x.pList;
77561 if( pList ){
77562 int i = pList->nExpr;
77563 struct ExprList_item *pItem = pList->a;
77619 ExprList *pList, /* The expression list to be coded */
77625 assert( pList!=0 );
77628 n = pList->nExpr;
77629 for(pItem=pList->a, i=0; i<n; i++, pItem++){
77672 compLeft.pRight = pExpr->x.pList->a[0].pExpr;
77675 compRight.pRight = pExpr->x.pList->a[1].pExpr;
77995 if( sqlite3ExprListCompare(pA->x.pList, pB->x.pList) ) return 2;
78182 pExpr->x.pList ? pExpr->x.pList->nExpr : 0, enc, 0);
78237 SQLITE_PRIVATE void sqlite3ExprAnalyzeAggList(NameContext *pNC, ExprList *pList){
78240 if( pList ){
78241 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
80721 SrcList *pList /* The Source list to check and modify */
80727 if( NEVER(pList==0) ) return 0;
80729 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
80776 if( sqlite3FixExprList(pFix, pExpr->x.pList) ) return 1;
80787 ExprList *pList /* The expression to be fixed to one database */
80791 if( pList==0 ) return 0;
80792 for(i=0, pItem=pList->a; i<pList->nExpr; i++, pItem++){
82191 ** Designate the PRIMARY KEY for the table. pList is a list of names
82192 ** of columns that form the primary key. If pList is NULL, then the
82210 ExprList *pList, /* List of field names to be indexed */
82225 if( pList==0 ){
82229 for(i=0; i<pList->nExpr; i++){
82231 if( sqlite3StrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ){
82239 if( pList->nExpr>1 ) iCol = -1;
82257 p = sqlite3CreateIndex(pParse, 0, 0, 0, pList, onError, 0, 0, sortOrder, 0);
82261 pList = 0;
82265 sqlite3ExprListDelete(pParse->db, pList);
83528 ** pList is a list of columns to be indexed. pList will be NULL if this
83541 ExprList *pList, /* A list of columns to be indexed */
83545 int sortOrder, /* Sort order of primary key when pList==NULL */
83561 struct ExprList_item *pListItem; /* For looping over pList */
83703 /* If pList==0, it means this routine was called to make a primary
83707 if( pList==0 ){
83710 pList = sqlite3ExprListAppend(pParse, 0, 0);
83711 if( pList==0 ) goto exit_create_index;
83712 sqlite3ExprListSetName(pParse, pList, &nullId, 0);
83713 pList->a[0].sortOrder = (u8)sortOrder;
83719 for(i=0; i<pList->nExpr; i++){
83720 Expr *pExpr = pList->a[i].pExpr;
83735 nCol = pList->nExpr;
83760 pIndex->nColumn = pList->nExpr;
83784 for(i=0, pListItem=pList->a; i<pList->nExpr; i++, pListItem++){
84007 sqlite3ExprListDelete(db, pList);
84166 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
84168 if( pList==0 ){
84169 pList = sqlite3DbMallocZero(db, sizeof(IdList) );
84170 if( pList==0 ) return 0;
84171 pList->nAlloc = 0;
84173 pList->a = sqlite3ArrayAllocate(
84175 pList->a,
84176 sizeof(pList->a[0]),
84178 &pList->nId,
84179 &pList->nAlloc,
84183 sqlite3IdListDelete(db, pList);
84186 pList->a[i].zName = sqlite3NameFromToken(db, pToken);
84187 return pList;
84193 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
84195 if( pList==0 ) return;
84196 for(i=0; i<pList->nId; i++){
84197 sqlite3DbFree(db, pList->a[i].zName);
84199 sqlite3DbFree(db, pList->a);
84200 sqlite3DbFree(db, pList);
84204 ** Return the index in pList of the identifier named zId. Return -1
84207 SQLITE_PRIVATE int sqlite3IdListIndex(IdList *pList, const char *zName){
84209 if( pList==0 ) return -1;
84210 for(i=0; i<pList->nId; i++){
84211 if( sqlite3StrICmp(pList->a[i].zName, zName)==0 ) return i;
84289 ** a new one. If an OOM error does occurs, then the prior value of pList
84319 SrcList *pList, /* Append to this SrcList. NULL creates a new SrcList */
84325 if( pList==0 ){
84326 pList = sqlite3DbMallocZero(db, sizeof(SrcList) );
84327 if( pList==0 ) return 0;
84328 pList->nAlloc = 1;
84330 pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc);
84332 sqlite3SrcListDelete(db, pList);
84335 pItem = &pList->a[pList->nSrc-1];
84346 return pList;
84352 SQLITE_PRIVATE void sqlite3SrcListAssignCursors(Parse *pParse, SrcList *pList){
84355 assert(pList || pParse->db->mallocFailed );
84356 if( pList ){
84357 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
84370 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
84373 if( pList==0 ) return;
84374 for(pItem=pList->a, i=0; i<pList->nSrc; i++, pItem++){
84384 sqlite3DbFree(db, pList);
87488 || !pExpr->x.pList
87489 || pExpr->x.pList->nExpr!=2
88606 ExprList *pList = 0; /* Changes list if ON UPDATE CASCADE */
88679 pList = sqlite3ExprListAppend(pParse, pList, pNew);
88680 sqlite3ExprListSetName(pParse, pList, &tFromCol, 0);
88723 pStep->pExprList = sqlite3ExprListDup(db, pList, EXPRDUP_REDUCE);
88736 sqlite3ExprListDelete(db, pList);
89178 ** The pList parameter holds EXPRLIST in the first form of the INSERT
89179 ** statement above, and pSelect is NULL. For the second form, pList is
89273 ExprList *pList, /* List of values to be inserted */
89391 assert( pList==0 );
89510 nColumn = pList ? pList->nExpr : 0;
89512 if( sqlite3ResolveExprNames(&sNC, pList->a[i].pExpr) ){
89663 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regCols);
89686 if( (!useTempTable && !pList) || (pColumn && j>=pColumn->nId) ){
89692 sqlite3ExprCodeAndCache(pParse, pList->a[j].pExpr, regCols+i+1);
89730 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regRowid);
89797 sqlite3ExprCode(pParse, pList->a[j].pExpr, iRegStore);
89880 sqlite3ExprListDelete(db, pList);
94733 IdList *pList = pRight->pUsing;
94734 for(j=0; j<pList->nId; j++){
94740 zName = pList->a[j].zName;
95102 static KeyInfo *keyInfoFromExprList(Parse *pParse, ExprList *pList){
95109 nExpr = pList->nExpr;
95116 for(i=0, pItem=pList->a; i<nExpr; i++, pItem++){
96891 substExprList(db, pExpr->x.pList, iTable, pEList);
96898 ExprList *pList, /* List to scan and in which to make substitutes */
96903 if( pList==0 ) return;
96904 for(i=0; i<pList->nExpr; i++){
96905 pList->a[i].pExpr = substExpr(db, pList->a[i].pExpr, iTable, pEList);
97063 ExprList *pList; /* The result set of the outer query */
97358 pList = pParent->pEList;
97359 for(i=0; i<pList->nExpr; i++){
97360 if( pList->a[i].zName==0 ){
97361 const char *zSpan = pList->a[i].zSpan;
97363 pList->a[i].zName = sqlite3DbStrDup(db, zSpan);
97443 pEList = pExpr->x.pList;
97903 if( pE->x.pList==0 || pE->x.pList->nExpr!=1 ){
97908 KeyInfo *pKeyInfo = keyInfoFromExprList(pParse, pE->x.pList);
97925 ExprList *pList = pF->pExpr->x.pList;
97927 sqlite3VdbeAddOp4(v, OP_AggFinal, pF->iMem, pList ? pList->nExpr : 0, 0,
97948 ExprList *pList = pF->pExpr->x.pList;
97950 if( pList ){
97951 nArg = pList->nExpr;
97953 sqlite3ExprCodeExprList(pParse, pList, regAgg, 1);
97967 assert( pList!=0 ); /* pList!=0 if pF->pFunc has NEEDCOLL */
97968 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){
98464 sqlite3ExprAnalyzeAggList(&sNC, sAggInfo.aFunc[i].pExpr->x.pList);
98773 pMinMax = sqlite3ExprListDup(db, p->pEList->a[0].pExpr->x.pList,0);
99193 Trigger *pList = 0; /* List of triggers to return */
99207 pTrig->pNext = (pList ? pList : pTab->pTrigger);
99208 pList = pTrig;
99213 return (pList ? pList : pTab->pTrigger);
99795 Trigger *pList = 0;
99799 pList = sqlite3TriggerList(pParse, pTab);
99801 assert( pList==0 || IsVirtual(pTab)==0 );
99802 for(p=pList; p; p=p->pNext){
99810 return (mask ? pList : 0);
102823 mask |= exprListTableUsage(pMaskSet, p->x.pList);
102827 static Bitmask exprListTableUsage(WhereMaskSet *pMaskSet, ExprList *pList){
102830 if( pList ){
102831 for(i=0; i<pList->nExpr; i++){
102832 mask |= exprTableUsage(pMaskSet, pList->a[i].pExpr);
103030 ExprList *pList; /* List of operands to the LIKE operator */
103044 pList = pExpr->x.pList;
103045 pLeft = pList->a[1].pExpr;
103053 pRight = pList->a[0].pExpr;
103119 ExprList *pList;
103127 pList = pExpr->x.pList;
103128 if( pList->nExpr!=2 ){
103131 if( pList->a[1].pExpr->op != TK_COLUMN ){
103422 ExprList *pList = 0; /* The RHS of the IN operator */
103432 pList = sqlite3ExprListAppend(pWC->pParse, pList, pDup);
103442 pNew->x.pList = pList;
103450 sqlite3ExprListDelete(db, pList);
103508 pTerm->prereqRight = exprListTableUsage(pMaskSet, pExpr->x.pList);
103583 ExprList *pList = pExpr->x.pList;
103586 assert( pList!=0 );
103587 assert( pList->nExpr==2 );
103593 sqlite3ExprDup(db, pList->a[i].pExpr, 0), 0);
103637 pLeft = pExpr->x.pList->a[1].pExpr;
103692 pRight = pExpr->x.pList->a[0].pExpr;
103693 pLeft = pExpr->x.pList->a[1].pExpr;
103764 ** Return TRUE if any of the expressions in pList->a[iFirst...] contain
103768 ExprList *pList, /* Search expressions in ths list */
103774 while( iFirst<pList->nExpr ){
103775 if( (exprTableUsage(pMaskSet, pList->a[iFirst++].pExpr)&allowed)!=0 ){
103789 ** If such an expression is found, its index in pList->a[] is returned. If
103794 ExprList *pList, /* Expression list to search */
103802 for(i=0; i<pList->nExpr; i++){
103803 Expr *p = pList->a[i].pExpr;
105178 ExprList *pList, /* The value list on the RHS of "x IN (v1,v2,v3,...)" */
105187 for(i=0; rc==SQLITE_OK && i<pList->nExpr; i++){
105189 rc = whereEqualScanEst(pParse, p, pList->a[i].pExpr, &nEst);
105398 }else if( ALWAYS(pExpr->x.pList && pExpr->x.pList->nExpr) ){
105400 nInMul *= pExpr->x.pList->nExpr;
105514 whereInScanEst(pParse, pProbe, pFirstTerm->pExpr->x.pList, &nRow);
110311 ExprList *pList;
110312 pList = sqlite3ExprListAppend(pParse,0, yymsp[0].minor.yy118.pExpr);
110313 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-2].minor.yy118.pExpr);
110314 yygotominor.yy118.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-1].minor.yy342.eOperator);
110323 ExprList *pList;
110324 pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy118.pExpr);
110325 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-4].minor.yy118.pExpr);
110326 pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy118.pExpr);
110327 yygotominor.yy118.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-3].minor.yy342.eOperator);
110364 ExprList *pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy118.pExpr);
110365 pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy118.pExpr);
110368 yygotominor.yy118.pExpr->x.pList = pList;
110370 sqlite3ExprListDelete(pParse->db, pList);
110393 yygotominor.yy118.pExpr->x.pList = yymsp[-1].minor.yy322;
110467 yygotominor.yy118.pExpr->x.pList = yymsp[-2].minor.yy322;
116439 sqlite3_int64 iDocid; /* Current docid (if pList!=0) */
116440 int bFreeList; /* True if pList should be sqlite3_free()d */
116441 char *pList; /* Pointer to position list following iDocid */
118718 ** Argument pList points to a position list nList bytes in size. This
118722 ** of the entries from pList at position 0, and terminated by an 0x00 byte.
118727 char *pList, /* Position list (no 0x00 term) */
118728 int nList, /* Size of pList in bytes */
118733 char *p = pList;
118734 char *pEnd = &pList[nList];
119923 ** Arguments pList/nList contain the doclist for token iToken of phrase p.
119926 ** This function assumes that pList points to a buffer allocated using
119932 Fts3Phrase *p, /* Phrase to merge pList/nList into */
119933 int iToken, /* Token pList/nList corresponds to */
119934 char *pList, /* Pointer to doclist */
119935 int nList /* Number of bytes in pList */
119939 if( pList==0 ){
119946 p->doclist.aAll = pList;
119951 sqlite3_free(pList);
119964 pRight = pList;
119970 pLeft = pList;
120021 ** means that the phrase does not appear in the current row, doclist.pList
120039 char *pList;
120041 int rc = sqlite3Fts3DeferredTokenList(pDeferred, &pList, &nList);
120044 if( pList==0 ){
120046 pPhrase->doclist.pList = 0;
120051 aPoslist = pList;
120055 char *aOut = pList;
120062 aPoslist = pList;
120066 pPhrase->doclist.pList = 0;
120078 pPhrase->doclist.pList = aPoslist;
120090 p2 = pPhrase->doclist.pList;
120093 p1 = pPhrase->doclist.pList;
120104 pPhrase->doclist.pList = aOut;
120107 pPhrase->doclist.nList = (aOut - pPhrase->doclist.pList);
120110 pPhrase->doclist.pList = 0;
120245 &pDL->iDocid, &pDL->pList, &pDL->nList
120247 if( rc==SQLITE_OK && !pDL->pList ){
120254 pDL->pList = pDL->pNextDocid;
120275 pDL->pList = pIter;
120277 pDL->nList = (pIter - pDL->pList);
120577 char *pList = 0;
120578 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
120579 assert( rc==SQLITE_OK || pList==0 );
120582 fts3EvalPhraseMergeToken(pTab, pTC->pPhrase, pTC->iToken,pList,nList);
120658 sqlite3_free(pPhrase->doclist.pList);
120660 pPhrase->doclist.pList = 0;
120701 assert( pPhrase->doclist.pList );
120703 p2 = pOut = pPhrase->doclist.pList;
120708 nNew = (pOut - pPhrase->doclist.pList) - 1;
120709 assert( pPhrase->doclist.pList[nNew]=='\0' );
120711 memset(&pPhrase->doclist.pList[nNew], 0, pPhrase->doclist.nList - nNew);
120713 *paPoslist = pPhrase->doclist.pList;
120737 ** FTs3Expr.pPhrase->doclist.nList (length of pList in bytes)
120738 ** FTs3Expr.pPhrase->doclist.pList (pointer to position list)
120877 ** (Fts3Expr->pPhrase.doclist.pList/nList) for each phrase in the expression.
120928 char *aPoslist = p->pPhrase->doclist.pList;
120937 aPoslist = pExpr->pRight->pPhrase->doclist.pList;
121040 bHit = (pPhrase->doclist.pList!=0);
121172 ** found in Fts3Expr.pPhrase->doclist.pList for each of the phrase
121178 if( pPhrase && pPhrase->doclist.pList ){
121180 char *p = pPhrase->doclist.pList;
121385 char *pIter = pPhrase->doclist.pList;
124767 PendingList *pList; /* Doclist is assembled here */
125269 static void fts3PendingListDelete(PendingList *pList){
125270 sqlite3_free(pList);
125284 PendingList *pList;
125287 pList = (PendingList *)fts3HashFind(pHash, zToken, nToken);
125288 if( pList ){
125289 p->nPendingData -= (pList->nData + nToken + sizeof(Fts3HashElem));
125291 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
125292 if( pList==fts3HashInsert(pHash, zToken, nToken, pList) ){
125297 sqlite3_free(pList);
125302 p->nPendingData += (pList->nData + nToken + sizeof(Fts3HashElem));
125416 PendingList *pList = (PendingList *)fts3HashData(pElem);
125417 fts3PendingListDelete(pList);
125795 PendingList *pList = (PendingList *)fts3HashData(pElem);
125798 pReader->nNode = pReader->nDoclist = pList->nData + 1;
125799 pReader->aNode = pReader->aDoclist = pList->aData;
126944 char *pList = *ppList;
126946 char *pEnd = &pList[nList];
126948 char *p = pList;
126956 nList = (int)(p - pList);
126960 nList -= (int)(p - pList);
126961 pList = p;
126965 p = &pList[1];
126969 *ppList = pList;
126982 char *pList,
126993 memcpy(pMsr->aBuffer, pList, nList);
127024 char *pList;
127029 rc = fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127043 fts3ColumnFilter(pMsr->iColFilter, &pList, &nList);
127048 rc = fts3MsrBufferData(pMsr, pList, nList+1);
127053 *paPoslist = pList;
127272 char *pList;
127276 fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127287 fts3ColumnFilter(pFilter->iCol, &pList, &nList);
127318 nWrite = sqlite3Fts3FirstFilter(iDelta, pList, nList, a);
127327 memcpy(&pCsr->aBuffer[nDoclist], pList, nList);
127751 fts3PendingListDelete(pDef->pList);
127752 pDef->pList = 0;
127765 fts3PendingListDelete(pDef->pList);
127813 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
127822 if( pDef->pList ){
127823 rc = fts3PendingListAppendVarint(&pDef->pList, 0);
127843 if( p->pList==0 ){
127847 pRet = (char *)sqlite3_malloc(p->pList->nData);
127850 nSkip = sqlite3Fts3GetVarint(p->pList->aData, &dummy);
127851 *pnData = p->pList->nData - nSkip;
127854 memcpy(pRet, &p->pList->aData[nSkip], *pnData);
128141 char *pList; /* Pointer to start of phrase position list */
128443 pPhrase->pList = pCsr;
128451 assert( pPhrase->pList==0 && pPhrase->pHead==0 && pPhrase->pTail==0 );
129352 char *pList; /* Position-list */
129353 int iPos; /* Position just read from pList */
129372 char *pList; /* Pointer to position list for phrase */
129376 pList = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol);
129378 if( pList ){
129379 fts3GetDeltaPosition(&pList, &iPos);
129386 pT->pList = pList;
129479 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
129490 if( 0==(0xFE&*pTerm->pList) ){
129491 pTerm->pList = 0;
129493 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);