/external/chromium_org/third_party/sqlite/src/src/ |
D | malloc.c | 510 int nOld, nNew; in sqlite3Realloc() local 527 nNew = sqlite3GlobalConfig.m.xRoundup(nBytes); in sqlite3Realloc() 528 if( nOld==nNew ){ in sqlite3Realloc() 533 if( sqlite3StatusValue(SQLITE_STATUS_MEMORY_USED)+nNew-nOld >= in sqlite3Realloc() 535 sqlite3MallocAlarm(nNew-nOld); in sqlite3Realloc() 539 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 542 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 545 nNew = sqlite3MallocSize(pNew); in sqlite3Realloc() 546 sqlite3StatusAdd(SQLITE_STATUS_MEMORY_USED, nNew-nOld); in sqlite3Realloc() 550 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc()
|
D | pcache1.c | 373 unsigned int nNew; in pcache1ResizeHash() local 378 nNew = p->nHash*2; in pcache1ResizeHash() 379 if( nNew<256 ){ in pcache1ResizeHash() 380 nNew = 256; in pcache1ResizeHash() 385 apNew = (PgHdr1 **)sqlite3_malloc(sizeof(PgHdr1 *)*nNew); in pcache1ResizeHash() 389 memset(apNew, 0, sizeof(PgHdr1 *)*nNew); in pcache1ResizeHash() 394 unsigned int h = pPage->iKey % nNew; in pcache1ResizeHash() 402 p->nHash = nNew; in pcache1ResizeHash()
|
D | test6.c | 437 int nNew = (pCrash->nData*2) + 4096; in cfWrite() local 438 zNew = crash_realloc(pCrash->zData, nNew); in cfWrite() 442 memset(&zNew[pCrash->nData], 0, nNew-pCrash->nData); in cfWrite() 443 pCrash->nData = nNew; in cfWrite()
|
D | test_onefile.c | 291 int nNew = 2*(iAmt+iOfst+pTmp->nAlloc); in tmpWrite() local 292 char *zNew = sqlite3_realloc(pTmp->zAlloc, nNew); in tmpWrite() 297 pTmp->nAlloc = nNew; in tmpWrite()
|
D | btree.c | 5835 int nNew = 0; /* Number of pages in apNew[] */ in balance_nonroot() local 6137 nNew++; in balance_nonroot() 6144 nNew++; in balance_nonroot() 6198 nNew>=2 ? apNew[1]->pgno : 0, nNew>=2 ? szNew[1] : 0, in balance_nonroot() 6199 nNew>=3 ? apNew[2]->pgno : 0, nNew>=3 ? szNew[2] : 0, in balance_nonroot() 6200 nNew>=4 ? apNew[3]->pgno : 0, nNew>=4 ? szNew[3] : 0, in balance_nonroot() 6201 nNew>=5 ? apNew[4]->pgno : 0, nNew>=5 ? szNew[4] : 0)); in balance_nonroot() 6204 put4byte(pRight, apNew[nNew-1]->pgno); in balance_nonroot() 6211 for(i=0; i<nNew; i++){ in balance_nonroot() 6217 assert( pNew->nCell>0 || (nNew==1 && cntNew[0]==0) ); in balance_nonroot() [all …]
|
D | test_osinst.c | 987 int nNew = sizeof(pCsr->azFile[0])*(iFileid+1); in vlogNext() local 988 pCsr->azFile = (char **)sqlite3_realloc(pCsr->azFile, nNew); in vlogNext() 989 nNew -= sizeof(pCsr->azFile[0])*pCsr->nFile; in vlogNext() 990 memset(&pCsr->azFile[pCsr->nFile], 0, nNew); in vlogNext()
|
D | pager.c | 5942 Pgno nNew = pPager->dbSize - (pPager->dbSize==PAGER_MJ_PGNO(pPager)); in sqlite3PagerCommitPhaseOne() local 5944 rc = pager_truncate(pPager, nNew); in sqlite3PagerCommitPhaseOne() 6245 int nNew; /* Number of remaining savepoints after this op. */ in sqlite3PagerSavepoint() local 6251 nNew = iSavepoint + (( op==SAVEPOINT_RELEASE ) ? 0 : 1); in sqlite3PagerSavepoint() 6252 for(ii=nNew; ii<pPager->nSavepoint; ii++){ in sqlite3PagerSavepoint() 6255 pPager->nSavepoint = nNew; in sqlite3PagerSavepoint() 6260 if( nNew==0 && isOpen(pPager->sjfd) ){ in sqlite3PagerSavepoint() 6275 PagerSavepoint *pSavepoint = (nNew==0)?0:&pPager->aSavepoint[nNew-1]; in sqlite3PagerSavepoint()
|
D | vdbeaux.c | 113 int nNew = (p->nOpAlloc ? p->nOpAlloc*2 : (int)(1024/sizeof(Op))); in growOpArray() local 114 pNew = sqlite3DbRealloc(p->db, p->aOp, nNew*sizeof(Op)); in growOpArray()
|
D | sqlite.h.in | 4046 ** encrypted, this routine will encrypt it. If pNew==0 or nNew==0, the
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
D | fts3_expr.c | 194 static void *fts3ReallocOrFree(void *pOrig, int nNew){ in fts3ReallocOrFree() argument 195 void *pRet = sqlite3_realloc(pOrig, nNew); in fts3ReallocOrFree() 267 int nNew = 0; in getNextString() local 282 p->pPhrase->aToken[jj].z = &zNew[nNew]; in getNextString() 283 nNew += p->pPhrase->aToken[jj].n; in getNextString()
|
D | fts3.c | 1978 int nNew = nOut + pTS->anOutput[i]; in fts3TermSelectMerge() local 1979 char *aNew = sqlite3_malloc(nNew); in fts3TermSelectMerge() 1985 aNew, &nNew, pTS->aaOutput[i], pTS->anOutput[i], aOut, nOut, 0 in fts3TermSelectMerge() 1991 nOut = nNew; in fts3TermSelectMerge() 2040 int nNew; in fts3TermSelectCb() local 2048 nNew = nMerge + pTS->anOutput[iOut]; in fts3TermSelectCb() 2049 aNew = sqlite3_malloc(nNew); in fts3TermSelectCb() 2056 fts3DoclistMerge(mergetype, 0, 0, aNew, &nNew, in fts3TermSelectCb() 2065 nMerge = nNew; in fts3TermSelectCb() 2826 int nNew; in fts3EvalExpr() local [all …]
|
D | fts3_tokenizer.c | 181 int nNew = sizeof(char *)*(iArg+1); in sqlite3Fts3InitTokenizer() local 182 char const **aNew = (const char **)sqlite3_realloc((void *)aArg, nNew); in sqlite3Fts3InitTokenizer()
|
D | fts3_write.c | 436 int nNew = p->nSpace * 2; in fts3PendingListAppendVarint() local 437 p = sqlite3_realloc(p, sizeof(*p) + nNew); in fts3PendingListAppendVarint() 443 p->nSpace = nNew; in fts3PendingListAppendVarint() 973 int nNew = (nPrefix+nSuffix)*2; in fts3SegReaderNext() local 974 char *zNew = sqlite3_realloc(pReader->zTerm, nNew); in fts3SegReaderNext() 979 pReader->nTermAlloc = nNew; in fts3SegReaderNext()
|
/external/chromium_org/third_party/sqlite/src/tool/ |
D | lemon.c | 2353 int nOld, n, nLine, nNew, nBack; in parseonetoken() local 2358 nNew = lemonStrlen(zNew); in parseonetoken() 2365 n = nOld + nNew + 20; in parseonetoken() 2397 memcpy(zBuf, zNew, nNew); in parseonetoken() 2398 zBuf += nNew; in parseonetoken()
|
/external/sqlite/dist/orig/ |
D | sqlite3.c | 19096 int nOld, nNew, nDiff; in sqlite3Realloc() local 19113 nNew = sqlite3GlobalConfig.m.xRoundup(nBytes); in sqlite3Realloc() 19114 if( nOld==nNew ){ in sqlite3Realloc() 19119 nDiff = nNew - nOld; in sqlite3Realloc() 19126 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 19129 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 19132 nNew = sqlite3MallocSize(pNew); in sqlite3Realloc() 19133 sqlite3StatusAdd(SQLITE_STATUS_MEMORY_USED, nNew-nOld); in sqlite3Realloc() 19137 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 37226 unsigned int nNew; [all …]
|
/external/sqlite/dist/ |
D | sqlite3.c | 19096 int nOld, nNew, nDiff; in sqlite3Realloc() local 19113 nNew = sqlite3GlobalConfig.m.xRoundup(nBytes); in sqlite3Realloc() 19114 if( nOld==nNew ){ in sqlite3Realloc() 19119 nDiff = nNew - nOld; in sqlite3Realloc() 19126 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 19129 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 19132 nNew = sqlite3MallocSize(pNew); in sqlite3Realloc() 19133 sqlite3StatusAdd(SQLITE_STATUS_MEMORY_USED, nNew-nOld); in sqlite3Realloc() 19137 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 37254 unsigned int nNew; [all …]
|
/external/chromium_org/third_party/sqlite/amalgamation/ |
D | sqlite3.c | 18230 int nOld, nNew; in sqlite3Realloc() local 18247 nNew = sqlite3GlobalConfig.m.xRoundup(nBytes); in sqlite3Realloc() 18248 if( nOld==nNew ){ in sqlite3Realloc() 18253 if( sqlite3StatusValue(SQLITE_STATUS_MEMORY_USED)+nNew-nOld >= in sqlite3Realloc() 18255 sqlite3MallocAlarm(nNew-nOld); in sqlite3Realloc() 18259 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 18262 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() 18265 nNew = sqlite3MallocSize(pNew); in sqlite3Realloc() 18266 sqlite3StatusAdd(SQLITE_STATUS_MEMORY_USED, nNew-nOld); in sqlite3Realloc() 18270 pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); in sqlite3Realloc() [all …]
|