Home | History | Annotate | Download | only in dist

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);
55492 MemPage *pOld = apCopy[i] = (MemPage*)&aSpace1[pBt->pageSize + k*i];
55493 memcpy(pOld, apOld[i], sizeof(MemPage));
55494 pOld->aData = (void*)&pOld[1];
55495 memcpy(pOld->aData, apOld[i]->aData, pBt->pageSize);
55497 limit = pOld->nCell+pOld->nOverflow;
55498 if( pOld->nOverflow>0 ){
55501 apCell[nCell] = findOverflowCell(pOld, j);
55502 szCell[nCell] = cellSizePtr(pOld, apCell[nCell]);
55506 u8 *aData = pOld->aData;
55507 u16 maskPage = pOld->maskPage;
55508 u16 cellOffset = pOld->cellOffset;
55512 szCell[nCell] = cellSizePtr(pOld, apCell[nCell]);
55529 if( !pOld->leaf ){
55531 assert( pOld->hdrOffset==0 );
55532 /* The right pointer of the child page pOld becomes the left
55534 memcpy(apCell[nCell], &pOld->aData[8], 4);
55845 MemPage *pOld = apCopy[0];
55846 int nOverflow = pOld->nOverflow;
55847 int iNextOld = pOld->nCell + nOverflow;
55848 int iOverflow = (nOverflow ? pOld->aiOvfl[0] : -1);
55858 pOld = apCopy[++j];
55859 iNextOld = i + !leafData + pOld->nCell + pOld->nOverflow;
55860 if( pOld->nOverflow ){
55861 pOld->nOverflow;
55862 iOverflow = i + !leafData + pOld->aiOvfl[0];
55868 assert(nOverflow<2 || pOld->aiOvfl[0]==pOld->aiOvfl[1]-1);
55869 assert(nOverflow<3 || pOld->aiOvfl[1]==pOld->aiOvfl[2]-1);
55891 if( isDivider || pOld->pgno!=pNew->pgno ){
81753 TESTONLY ( Index *pOld = ) sqlite3HashInsert(
81757 assert( pOld==pIndex || pOld==0 );
82862 Table *pOld;
82865 pOld = sqlite3HashInsert(&pSchema->tblHash, p->zName,
82867 if( pOld ){
82868 assert( p==pOld ); /* Malloc must have failed inside HashInsert() */
94363 Vdbe *pOld, /* VM being reprepared */
94375 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
94378 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
101897 Table *pOld;
101902 pOld = sqlite3HashInsert(&pSchema->tblHash, zName, nName, pTab);
101903 if( pOld ){
101905 assert( pTab==pOld ); /* Malloc must have failed inside HashInsert() */
102921 WhereTerm *pOld = pWC->a;
102928 pWC->a = pOld;
102931 memcpy(pWC->a, pOld, sizeof(pWC->a[0])*pWC->nTerm);
102932 if( pOld!=pWC->aStatic ){
102933 sqlite3DbFree(db, pOld);
113756 void *pOld;
113758 pOld = db->pTraceArg;
113762 return pOld;
113777 void *pOld;
113779 pOld = db->pProfileArg;
113783 return pOld;
113797 void *pOld;
113799 pOld = db->pCommitArg;
113803 return pOld;
124450 void *pOld;
124457 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr);
124458 if( pOld==pPtr ){