| /sqlite-3.40.0/ext/fts3/ |
| H A D | fts3_unicode.c | 155 int *aNew; /* New aiException[] array */ in unicodeAddExceptions() local 158 aNew = sqlite3_realloc64(p->aiException,(p->nException+nEntry)*sizeof(int)); in unicodeAddExceptions() 159 if( aNew==0 ) return SQLITE_NOMEM; in unicodeAddExceptions() 169 for(i=0; i<nNew && aNew[i]<(int)iCode; i++); in unicodeAddExceptions() 170 for(j=nNew; j>i; j--) aNew[j] = aNew[j-1]; in unicodeAddExceptions() 171 aNew[i] = (int)iCode; in unicodeAddExceptions() 175 p->aiException = aNew; in unicodeAddExceptions()
|
| H A D | fts3_aux.c | 250 struct Fts3auxColstats *aNew; in fts3auxGrowStatArray() local 251 aNew = (struct Fts3auxColstats *)sqlite3_realloc64(pCsr->aStat, in fts3auxGrowStatArray() 254 if( aNew==0 ) return SQLITE_NOMEM; in fts3auxGrowStatArray() 255 memset(&aNew[pCsr->nStat], 0, in fts3auxGrowStatArray() 258 pCsr->aStat = aNew; in fts3auxGrowStatArray()
|
| H A D | fts3_tokenizer.c | 200 char const **aNew = (const char **)sqlite3_realloc64((void *)aArg, nNew); in sqlite3Fts3InitTokenizer() local 201 if( !aNew ){ in sqlite3Fts3InitTokenizer() 206 aArg = aNew; in sqlite3Fts3InitTokenizer()
|
| H A D | fts3_write.c | 2335 char *aNew = sqlite3_realloc64(pWriter->aData, nReq); in fts3SegWriterAdd() local 2336 if( !aNew ) return SQLITE_NOMEM; in fts3SegWriterAdd() 2337 pWriter->aData = aNew; in fts3SegWriterAdd() 2868 char *aNew; in fts3GrowSegReaderBuffer() local 2870 aNew = sqlite3_realloc64(pCsr->aBuffer, pCsr->nBuffer); in fts3GrowSegReaderBuffer() 2871 if( !aNew ){ in fts3GrowSegReaderBuffer() 2874 pCsr->aBuffer = aNew; in fts3GrowSegReaderBuffer() 4550 int *aNew; in fts3RepackSegdirLevel() local 4552 aNew = sqlite3_realloc64(aIdx, nAlloc*sizeof(int)); in fts3RepackSegdirLevel() 4553 if( !aNew ){ in fts3RepackSegdirLevel() [all …]
|
| /sqlite-3.40.0/src/ |
| H A D | test_hexio.c | 410 unsigned char *aNew = sqlite3_realloc(aOut, nNew); in make_fts3record() local 411 if( aNew==0 ){ in make_fts3record() 415 aOut = aNew; in make_fts3record() 424 unsigned char *aNew = sqlite3_realloc(aOut, nNew); in make_fts3record() local 425 if( aNew==0 ){ in make_fts3record() 429 aOut = aNew; in make_fts3record()
|
| H A D | attach.c | 87 Db *aNew; /* New array of Db pointers */ in attachFunc() local 142 aNew = sqlite3DbMallocRawNN(db, sizeof(db->aDb[0])*3 ); in attachFunc() 143 if( aNew==0 ) return; in attachFunc() 144 memcpy(aNew, db->aDb, sizeof(db->aDb[0])*2); in attachFunc() 146 aNew = sqlite3DbRealloc(db, db->aDb, sizeof(db->aDb[0])*(db->nDb+1) ); in attachFunc() 147 if( aNew==0 ) return; in attachFunc() 149 db->aDb = aNew; in attachFunc()
|
| H A D | loadext.c | 786 void (**aNew)(void); in sqlite3_auto_extension() local 787 aNew = sqlite3_realloc64(wsdAutoext.aExt, nByte); in sqlite3_auto_extension() 788 if( aNew==0 ){ in sqlite3_auto_extension() 791 wsdAutoext.aExt = aNew; in sqlite3_auto_extension()
|
| H A D | vdbesort.c | 539 u8 *aNew; in vdbePmaReadBlob() local 542 aNew = sqlite3Realloc(p->aAlloc, nNew); in vdbePmaReadBlob() 543 if( !aNew ) return SQLITE_NOMEM_BKPT; in vdbePmaReadBlob() 545 p->aAlloc = aNew; in vdbePmaReadBlob() 1836 u8 *aNew; in sqlite3VdbeSorterWrite() local 1845 aNew = sqlite3Realloc(pSorter->list.aMemory, nNew); in sqlite3VdbeSorterWrite() 1846 if( !aNew ) return SQLITE_NOMEM_BKPT; in sqlite3VdbeSorterWrite() 1848 pSorter->list.pList = (SorterRecord*)&aNew[iListOff]; in sqlite3VdbeSorterWrite() 1850 pSorter->list.aMemory = aNew; in sqlite3VdbeSorterWrite()
|
| H A D | os_kv.c | 602 char *aNew = sqlite3_realloc(pFile->aJrnl, iEnd); in kvvfsWriteJrnl() local 603 if( aNew==0 ){ in kvvfsWriteJrnl() 606 pFile->aJrnl = aNew; in kvvfsWriteJrnl()
|
| H A D | pager.c | 6855 aNew = (PagerSavepoint *)sqlite3Realloc( in pagerOpenSavepoint() 6858 if( !aNew ){ in pagerOpenSavepoint() 6862 pPager->aSavepoint = aNew; in pagerOpenSavepoint() 6866 aNew[ii].nOrig = pPager->dbSize; in pagerOpenSavepoint() 6868 aNew[ii].iOffset = pPager->journalOff; in pagerOpenSavepoint() 6870 aNew[ii].iOffset = JOURNAL_HDR_SZ(pPager); in pagerOpenSavepoint() 6872 aNew[ii].iSubRec = pPager->nSubRec; in pagerOpenSavepoint() 6873 aNew[ii].pInSavepoint = sqlite3BitvecCreate(pPager->dbSize); in pagerOpenSavepoint() 6874 aNew[ii].bTruncateOnRelease = 1; in pagerOpenSavepoint() 6875 if( !aNew[ii].pInSavepoint ){ in pagerOpenSavepoint() [all …]
|
| H A D | vdbeapi.c | 2078 if( !p->aNew ){ in sqlite3_preupdate_new() 2079 p->aNew = (Mem *)sqlite3DbMallocZero(db, sizeof(Mem) * p->pCsr->nField); in sqlite3_preupdate_new() 2080 if( !p->aNew ){ in sqlite3_preupdate_new() 2086 pMem = &p->aNew[iIdx]; in sqlite3_preupdate_new()
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_test_tok.c | 337 Fts5tokRow *aNew; in fts5tokCb() local 338 aNew = (Fts5tokRow*)sqlite3_realloc64(pCsr->aRow, nNew*sizeof(Fts5tokRow)); in fts5tokCb() 339 if( aNew==0 ) return SQLITE_NOMEM; in fts5tokCb() 340 memset(&aNew[pCsr->nRow], 0, sizeof(Fts5tokRow)*(nNew-pCsr->nRow)); in fts5tokCb() 341 pCsr->aRow = aNew; in fts5tokCb()
|
| H A D | fts5_tokenize.c | 256 int *aNew; in fts5UnicodeAddExceptions() local 259 aNew = (int*)sqlite3_realloc64(p->aiException, in fts5UnicodeAddExceptions() 261 if( aNew ){ in fts5UnicodeAddExceptions() 278 if( (u32)aNew[i]>iCode ) break; in fts5UnicodeAddExceptions() 280 memmove(&aNew[i+1], &aNew[i], (nNew-i)*sizeof(int)); in fts5UnicodeAddExceptions() 281 aNew[i] = iCode; in fts5UnicodeAddExceptions() 286 p->aiException = aNew; in fts5UnicodeAddExceptions()
|
| H A D | fts5_aux.c | 269 int *aNew; in fts5SentenceFinderAdd() local 271 aNew = (int*)sqlite3_realloc64(p->aFirst, nNew*sizeof(int)); in fts5SentenceFinderAdd() 272 if( aNew==0 ) return SQLITE_NOMEM; in fts5SentenceFinderAdd() 273 p->aFirst = aNew; in fts5SentenceFinderAdd()
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | nextchar.c | 86 unsigned int *aNew; in nextCharAppend() local 88 aNew = sqlite3_realloc64(p->aResult, n*sizeof(unsigned int)); in nextCharAppend() 89 if( aNew==0 ){ in nextCharAppend() 93 p->aResult = aNew; in nextCharAppend()
|
| H A D | fileio.c | 700 FsdirLevel *aNew = (FsdirLevel*)sqlite3_realloc64(pCur->aLvl, nByte); in fsdirNext() local 701 if( aNew==0 ) return SQLITE_NOMEM; in fsdirNext() 702 memset(&aNew[pCur->nLvl], 0, sizeof(FsdirLevel)*(nNew-pCur->nLvl)); in fsdirNext() 703 pCur->aLvl = aNew; in fsdirNext()
|
| H A D | unionvtab.c | 942 UnionSrc *aNew = (UnionSrc*)sqlite3_realloc64( in unionConnect() local 945 if( aNew==0 ){ in unionConnect() 949 memset(&aNew[pTab->nSrc], 0, (nNew-pTab->nSrc)*sizeof(UnionSrc)); in unionConnect() 950 pTab->aSrc = aNew; in unionConnect()
|
| H A D | fossildelta.c | 634 const char *aNew; int nNew; /* new blob */ in deltaCreateFunc() local 643 aNew = (const char*)sqlite3_value_blob(argv[1]); in deltaCreateFunc() 648 nOut = delta_create(aOrig, nOrig, aNew, nNew, aOut); in deltaCreateFunc()
|
| H A D | zipfile.c | 1925 u8 *aNew; in zipfileBufferGrow() local 1930 aNew = sqlite3_realloc64(pBuf->a, nNew); in zipfileBufferGrow() 1931 if( aNew==0 ) return SQLITE_NOMEM; in zipfileBufferGrow() 1932 pBuf->a = aNew; in zipfileBufferGrow()
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_main.c | 884 TransMark *aNew; /* New allocation */ in lsm_begin() local 886 aNew = (TransMark *)lsmRealloc(pDb->pEnv, pDb->aTrans, nByte); in lsm_begin() 887 if( !aNew ){ in lsm_begin() 891 memset(&aNew[pDb->nTransAlloc], 0, nByte); in lsm_begin() 893 pDb->aTrans = aNew; in lsm_begin()
|
| H A D | lsm_shared.c | 113 FreelistEntry *aNew; in freelistAppend() local 117 aNew = (FreelistEntry *)lsmRealloc(pEnv, p->aEntry, nByte); in freelistAppend() 118 if( !aNew ) return LSM_NOMEM_BKPT; in freelistAppend() 120 p->aEntry = aNew; in freelistAppend()
|
| /sqlite-3.40.0/test/ |
| H A D | dbfuzz.c | 249 unsigned char *aNew; in inmemWrite() local 253 aNew = realloc(pVFile->a, (int)(iOfst+iAmt)); in inmemWrite() 254 if( aNew==0 ){ in inmemWrite() 257 pVFile->a = aNew; in inmemWrite()
|
| H A D | fuzzcheck.c | 738 unsigned char *a, *aNew; /* Database under construction */ in decodeDatabase() local 784 aNew = sqlite3_realloc64( a, newSize ); in decodeDatabase() 785 if( aNew==0 ){ in decodeDatabase() 789 a = aNew; in decodeDatabase()
|
| /sqlite-3.40.0/ext/session/ |
| H A D | sqlite3session.c | 797 u8 *aNew; in sessionMergeUpdate() local 800 aNew = sessionMergeValue(&aNew1, &aNew2, &nNew); in sessionMergeUpdate() 801 if( pTab->abPK[i] || nOld!=nNew || memcmp(aOld, aNew, nNew) ){ in sessionMergeUpdate() 822 u8 *aNew; in sessionMergeUpdate() local 825 aNew = sessionMergeValue(&aNew1, &aNew2, &nNew); in sessionMergeUpdate() 827 && (pTab->abPK[i] || (nOld==nNew && 0==memcmp(aOld, aNew, nNew))) in sessionMergeUpdate() 831 memcpy(aOut, aNew, nNew); in sessionMergeUpdate() 2001 u8 *aNew; in sessionBufferGrow() local 2021 aNew = (u8 *)sqlite3_realloc64(p->aBuf, nNew); in sessionBufferGrow() 2022 if( 0==aNew ){ in sessionBufferGrow() [all …]
|
| /sqlite-3.40.0/ext/rtree/ |
| H A D | geopoly.c | 233 GeoCoord *aNew; in geopolyParseJson() local 235 aNew = sqlite3_realloc64(s.a, s.nAlloc*sizeof(GeoCoord)*2 ); in geopolyParseJson() 236 if( aNew==0 ){ in geopolyParseJson() 241 s.a = aNew; in geopolyParseJson()
|