Lines Matching refs:pOld
16423 static void memsys3FreeUnsafe(void *pOld){
16424 Mem3Block *p = (Mem3Block*)pOld;
16979 static void memsys5FreeUnsafe(void *pOld){
16983 /* Set iBlock to the index of the block pointed to by pOld in
16986 iBlock = ((u8 *)pOld-mem5.zPool)/mem5.szAtom;
16988 /* Check that the pointer pOld points to a valid, non-free block. */
16990 assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 );
19095 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, int nBytes){
19098 if( pOld==0 ){
19102 sqlite3_free(pOld); /* IMP: R-31593-10574 */
19109 nOld = sqlite3MallocSize(pOld);
19115 pNew = pOld;
19124 assert( sqlite3MemdebugHasType(pOld, MEMTYPE_HEAP) );
19125 assert( sqlite3MemdebugNoType(pOld, ~MEMTYPE_HEAP) );
19126 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew);
19129 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew);
19137 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew);
19147 SQLITE_API void *sqlite3_realloc(void *pOld, int n){
19151 return sqlite3Realloc(pOld, n);
55464 MemPage *pOld = apCopy[i] = (MemPage*)&aSpace1[pBt->pageSize + k*i];
55465 memcpy(pOld, apOld[i], sizeof(MemPage));
55466 pOld->aData = (void*)&pOld[1];
55467 memcpy(pOld->aData, apOld[i]->aData, pBt->pageSize);
55469 limit = pOld->nCell+pOld->nOverflow;
55470 if( pOld->nOverflow>0 ){
55473 apCell[nCell] = findOverflowCell(pOld, j);
55474 szCell[nCell] = cellSizePtr(pOld, apCell[nCell]);
55478 u8 *aData = pOld->aData;
55479 u16 maskPage = pOld->maskPage;
55480 u16 cellOffset = pOld->cellOffset;
55484 szCell[nCell] = cellSizePtr(pOld, apCell[nCell]);
55501 if( !pOld->leaf ){
55503 assert( pOld->hdrOffset==0 );
55504 /* The right pointer of the child page pOld becomes the left
55506 memcpy(apCell[nCell], &pOld->aData[8], 4);
55817 MemPage *pOld = apCopy[0];
55818 int nOverflow = pOld->nOverflow;
55819 int iNextOld = pOld->nCell + nOverflow;
55820 int iOverflow = (nOverflow ? pOld->aiOvfl[0] : -1);
55830 pOld = apCopy[++j];
55831 iNextOld = i + !leafData + pOld->nCell + pOld->nOverflow;
55832 if( pOld->nOverflow ){
55833 nOverflow = pOld->nOverflow;
55834 iOverflow = i + !leafData + pOld->aiOvfl[0];
55840 assert(nOverflow<2 || pOld->aiOvfl[0]==pOld->aiOvfl[1]-1);
55841 assert(nOverflow<3 || pOld->aiOvfl[1]==pOld->aiOvfl[2]-1);
55863 if( isDivider || pOld->pgno!=pNew->pgno ){
81717 TESTONLY ( Index *pOld = ) sqlite3HashInsert(
81721 assert( pOld==pIndex || pOld==0 );
82826 Table *pOld;
82829 pOld = sqlite3HashInsert(&pSchema->tblHash, p->zName,
82831 if( pOld ){
82832 assert( p==pOld ); /* Malloc must have failed inside HashInsert() */
94327 Vdbe *pOld, /* VM being reprepared */
94339 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
94342 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
101861 Table *pOld;
101866 pOld = sqlite3HashInsert(&pSchema->tblHash, zName, nName, pTab);
101867 if( pOld ){
101869 assert( pTab==pOld ); /* Malloc must have failed inside HashInsert() */
102885 WhereTerm *pOld = pWC->a;
102892 pWC->a = pOld;
102895 memcpy(pWC->a, pOld, sizeof(pWC->a[0])*pWC->nTerm);
102896 if( pOld!=pWC->aStatic ){
102897 sqlite3DbFree(db, pOld);
113720 void *pOld;
113722 pOld = db->pTraceArg;
113726 return pOld;
113741 void *pOld;
113743 pOld = db->pProfileArg;
113747 return pOld;
113761 void *pOld;
113763 pOld = db->pCommitArg;
113767 return pOld;
124402 void *pOld;
124409 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
124410 if( pOld==pPtr ){