Lines Matching refs:pElem

157   AggElem *pElem, *pOld;  in AggInsert()  local
160 pElem = sqliteMalloc( sizeof(AggElem) + nKey + in AggInsert()
161 (p->nMem-1)*sizeof(pElem->aMem[0]) ); in AggInsert()
162 if( pElem==0 ) return 1; in AggInsert()
163 pElem->zKey = (char*)&pElem->aMem[p->nMem]; in AggInsert()
164 memcpy(pElem->zKey, zKey, nKey); in AggInsert()
165 pElem->nKey = nKey; in AggInsert()
166 pOld = sqliteHashInsert(&p->hash, pElem->zKey, pElem->nKey, pElem); in AggInsert()
168 assert( pOld==pElem ); /* Malloc failed on insert */ in AggInsert()
172 for(i=0, pMem=pElem->aMem; i<p->nMem; i++, pMem++){ in AggInsert()
175 p->pCurrent = pElem; in AggInsert()
184 HashElem *pElem = sqliteHashFirst(&p->hash); in _AggInFocus() local
185 if( pElem==0 ){ in _AggInFocus()
187 pElem = sqliteHashFirst(&p->hash); in _AggInFocus()
189 return pElem ? sqliteHashData(pElem) : 0; in _AggInFocus()
4044 Sorter *pElem; in sqliteVdbeExec() local
4050 pElem = p->pSort; in sqliteVdbeExec()
4051 p->pSort = pElem->pNext; in sqliteVdbeExec()
4052 pElem->pNext = 0; in sqliteVdbeExec()
4055 apSorter[i] = pElem; in sqliteVdbeExec()
4058 pElem = Merge(apSorter[i], pElem); in sqliteVdbeExec()
4063 apSorter[NSORT-1] = Merge(apSorter[NSORT-1],pElem); in sqliteVdbeExec()
4066 pElem = 0; in sqliteVdbeExec()
4068 pElem = Merge(apSorter[i], pElem); in sqliteVdbeExec()
4070 p->pSort = pElem; in sqliteVdbeExec()
4482 AggElem *pElem; in sqliteVdbeExec() local
4490 pElem = sqliteHashFind(&p->agg.hash, zKey, nKey); in sqliteVdbeExec()
4491 if( pElem ){ in sqliteVdbeExec()
4492 p->agg.pCurrent = pElem; in sqliteVdbeExec()