Lines Matching refs:pOld

22643 static void memsys3FreeUnsafe(void *pOld){  in memsys3FreeUnsafe()  argument
22644 Mem3Block *p = (Mem3Block*)pOld; in memsys3FreeUnsafe()
23187 static void memsys5FreeUnsafe(void *pOld){ in memsys5FreeUnsafe() argument
23194 iBlock = (int)(((u8 *)pOld-mem5.zPool)/mem5.szAtom); in memsys5FreeUnsafe()
23198 assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 ); in memsys5FreeUnsafe()
25514 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
25517 assert( sqlite3MemdebugHasType(pOld, MEMTYPE_HEAP) );
25518 assert( sqlite3MemdebugNoType(pOld, (u8)~MEMTYPE_HEAP) );
25519 if( pOld==0 ){
25523 sqlite3_free(pOld); /* IMP: R-26507-47431 */
25530 nOld = sqlite3MallocSize(pOld);
25536 pNew = pOld;
25545 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew);
25548 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew);
25556 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew);
25566 SQLITE_API void *sqlite3_realloc(void *pOld, int n){
25571 return sqlite3Realloc(pOld, n);
25573 SQLITE_API void *sqlite3_realloc64(void *pOld, sqlite3_uint64 n){
25577 return sqlite3Realloc(pOld, n);
67785 MemPage *pOld = apOld[i];
67786 int limit = pOld->nCell;
67787 u8 *aData = pOld->aData;
67788 u16 maskPage = pOld->maskPage;
67789 u8 *piCell = aData + pOld->cellOffset;
67795 if( pOld->aData[0]!=apOld[0]->aData[0] ){
67817 memset(&b.szCell[b.nCell], 0, sizeof(b.szCell[0])*(limit+pOld->nOverflow));
67818 if( pOld->nOverflow>0 ){
67819 limit = pOld->aiOvfl[0];
67825 for(k=0; k<pOld->nOverflow; k++){
67826 assert( k==0 || pOld->aiOvfl[k-1]+1==pOld->aiOvfl[k] );/* NOTE 1 */
67827 b.apCell[b.nCell] = pOld->apOvfl[k];
67831 piEnd = aData + pOld->cellOffset + 2*pOld->nCell;
67853 if( !pOld->leaf ){
67855 assert( pOld->hdrOffset==0 );
67858 memcpy(b.apCell[b.nCell], &pOld->aData[8], 4);
68095 MemPage *pOld = (nNew>nOld ? apNew : apOld)[nOld-1];
68096 memcpy(&apNew[nNew-1]->aData[8], &pOld->aData[8], 4);
68126 MemPage *pOld = (++iOld)<nNew ? apNew[iOld] : apOld[iOld];
68127 cntOldNext += pOld->nCell + pOld->nOverflow + !leafData;
68128 aOld = pOld->aData;
78006 SQLITE_API void sqlite3_value_free(sqlite3_value *pOld){
78007 sqlite3ValueFree(pOld);
99195 static void stat4Destructor(void *pOld){
99196 Stat4Accum *p = (Stat4Accum*)pOld;
99337 Stat4Sample *pOld
99341 assert( pNew->iCol==pOld->iCol );
99343 if( pNew->anEq[i]>pOld->anEq[i] ) return 1;
99344 if( pNew->anEq[i]<pOld->anEq[i] ) return 0;
99346 if( pNew->iHash>pOld->iHash ) return 1;
99361 Stat4Sample *pOld
99364 tRowcnt nEqOld = pOld->anEq[pOld->iCol];
99366 assert( pOld->isPSample==0 && pNew->isPSample==0 );
99367 assert( IsStat4 || (pNew->iCol==0 && pOld->iCol==0) );
99372 if( pNew->iCol<pOld->iCol ) return 1;
99373 return (pNew->iCol==pOld->iCol && sampleIsBetterPost(pAccum, pNew, pOld));
99377 return (nEqNew==nEqOld && pNew->iHash>pOld->iHash);
99409 Stat4Sample *pOld = &p->a[i];
99410 if( pOld->anEq[pNew->iCol]==0 ){
99411 if( pOld->isPSample ) return;
99412 assert( pOld->iCol>pNew->iCol );
99413 assert( sampleIsBetter(p, pNew, pOld) );
99414 if( pUpgrade==0 || sampleIsBetter(p, pOld, pUpgrade) ){
99415 pUpgrade = pOld;
102237 TESTONLY ( Index *pOld = ) sqlite3HashInsert(
102241 assert( pOld==pIndex || pOld==0 );
103670 Table *pOld;
103673 pOld = sqlite3HashInsert(&pSchema->tblHash, p->zName, p);
103674 if( pOld ){
103675 assert( p==pOld ); /* Malloc must have failed inside HashInsert() */
118449 Vdbe *pOld, /* VM being reprepared */
118469 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
127811 Table *pOld;
127815 pOld = sqlite3HashInsert(&pSchema->tblHash, zName, pTab);
127816 if( pOld ){
127818 assert( pTab==pOld ); /* Malloc must have failed inside HashInsert() */
131441 WhereTerm *pOld = pWC->a;
131448 pWC->a = pOld;
131451 memcpy(pWC->a, pOld, sizeof(pWC->a[0])*pWC->nTerm);
131452 if( pOld!=pWC->aStatic ){
131453 sqlite3DbFree(db, pOld);
141022 struct SrcList_item *pOld = yymsp[-4].minor.yy259->a;
141023 pNew->zName = pOld->zName;
141024 pNew->zDatabase = pOld->zDatabase;
141025 pNew->pSelect = pOld->pSelect;
141026 pOld->zName = pOld->zDatabase = 0;
141027 pOld->pSelect = 0;
145208 void *pOld;
145217 pOld = db->pTraceArg;
145222 return pOld;
145263 void *pOld;
145272 pOld = db->pProfileArg;
145276 return pOld;
145291 void *pOld;
145300 pOld = db->pCommitArg;
145304 return pOld;
157758 void *pOld;
157765 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
157766 if( pOld==pPtr ){
180404 sqlite3_session *pOld; /* Session object already attached to db */
180424 pOld = (sqlite3_session*)sqlite3_preupdate_hook(db, xPreUpdate, (void*)pNew);
180425 pNew->pNext = pOld;
182712 sqlite3_value *pOld = sessionChangesetOld(pIter, i);
182716 if( pOld ){
182717 rc = sessionBindValue(p->pUpdate, i*3+1, pOld);
197887 static int fts5PrefixCompress(int nOld, const u8 *pOld, const u8 *pNew){
197890 if( pOld[i]!=pNew[i] ) break;