Lines Matching refs:pOld
15848 void memsys3FreeUnsafe(void *pOld){ in memsys3FreeUnsafe() argument
15849 Mem3Block *p = (Mem3Block*)pOld; in memsys3FreeUnsafe()
16404 static void memsys5FreeUnsafe(void *pOld){ in memsys5FreeUnsafe() argument
16411 iBlock = ((u8 *)pOld-mem5.zPool)/mem5.szAtom; in memsys5FreeUnsafe()
16415 assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 ); in memsys5FreeUnsafe()
18518 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, int nBytes){ in sqlite3Realloc() argument
18521 if( pOld==0 ){ in sqlite3Realloc()
18525 sqlite3_free(pOld); /* IMP: R-31593-10574 */ in sqlite3Realloc()
18532 nOld = sqlite3MallocSize(pOld); in sqlite3Realloc()
18538 pNew = pOld; in sqlite3Realloc()
18547 assert( sqlite3MemdebugHasType(pOld, MEMTYPE_HEAP) ); in sqlite3Realloc()
18548 assert( sqlite3MemdebugNoType(pOld, ~MEMTYPE_HEAP) ); in sqlite3Realloc()
18549 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc()
18552 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc()
18560 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc()
18570 SQLITE_API void *sqlite3_realloc(void *pOld, int n){ in sqlite3_realloc() argument
18574 return sqlite3Realloc(pOld, n); in sqlite3_realloc()
53535 MemPage *pOld = apCopy[i] = (MemPage*)&aSpace1[pBt->pageSize + k*i];
53536 memcpy(pOld, apOld[i], sizeof(MemPage));
53537 pOld->aData = (void*)&pOld[1];
53538 memcpy(pOld->aData, apOld[i]->aData, pBt->pageSize);
53540 limit = pOld->nCell+pOld->nOverflow;
53541 if( pOld->nOverflow>0 ){
53544 apCell[nCell] = findOverflowCell(pOld, j);
53545 szCell[nCell] = cellSizePtr(pOld, apCell[nCell]);
53549 u8 *aData = pOld->aData;
53550 u16 maskPage = pOld->maskPage;
53551 u16 cellOffset = pOld->cellOffset;
53555 szCell[nCell] = cellSizePtr(pOld, apCell[nCell]);
53572 if( !pOld->leaf ){
53574 assert( pOld->hdrOffset==0 );
53577 memcpy(apCell[nCell], &pOld->aData[8], 4);
53882 MemPage *pOld = apCopy[0];
53883 int nOverflow = pOld->nOverflow;
53884 int iNextOld = pOld->nCell + nOverflow;
53885 int iOverflow = (nOverflow ? pOld->aOvfl[0].idx : -1);
53894 pOld = apCopy[++j];
53895 iNextOld = i + !leafData + pOld->nCell + pOld->nOverflow;
53896 if( pOld->nOverflow ){
53897 nOverflow = pOld->nOverflow;
53898 iOverflow = i + !leafData + pOld->aOvfl[0].idx;
53904 assert(nOverflow<2 || pOld->aOvfl[0].idx==pOld->aOvfl[1].idx-1);
53905 assert(nOverflow<3 || pOld->aOvfl[1].idx==pOld->aOvfl[2].idx-1);
53927 if( isDivider || pOld->pgno!=pNew->pgno ){
77861 TESTONLY ( Index *pOld = ) sqlite3HashInsert(
77865 assert( pOld==pIndex || pOld==0 );
78970 Table *pOld;
78973 pOld = sqlite3HashInsert(&pSchema->tblHash, p->zName,
78975 if( pOld ){
78976 assert( p==pOld ); /* Malloc must have failed inside HashInsert() */
90296 Vdbe *pOld, /* VM being reprepared */
90308 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
90311 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
97661 Table *pOld;
97666 pOld = sqlite3HashInsert(&pSchema->tblHash, zName, nName, pTab);
97667 if( pOld ){
97669 assert( pTab==pOld ); /* Malloc must have failed inside HashInsert() */
98671 WhereTerm *pOld = pWC->a;
98678 pWC->a = pOld;
98681 memcpy(pWC->a, pOld, sizeof(pWC->a[0])*pWC->nTerm);
98682 if( pOld!=pWC->aStatic ){
98683 sqlite3DbFree(db, pOld);
109150 void *pOld;
109152 pOld = db->pTraceArg;
109156 return pOld;
109171 void *pOld;
109173 pOld = db->pProfileArg;
109177 return pOld;
109192 void *pOld;
109194 pOld = db->pCommitArg;
109198 return pOld;
118971 void *pOld;
118978 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
118979 if( pOld==pPtr ){