Lines Matching refs:nAlloc
829 int nAlloc;
864 if( p->z==0 || p->n+len>=p->nAlloc ){
865 p->nAlloc = p->nAlloc*2 + len + 20;
866 p->z = realloc(p->z, p->nAlloc);
3905 unsigned nAlloc; /* Slots allocated for aOp[] and aArg[] */
4129 p->nAlloc = N;
4138 if( p->nAlloc<=p->nState && re_resize(p, p->nAlloc*2) ) return 0;
4159 if( p->nState+N>=p->nAlloc && re_resize(p, p->nAlloc*2+N) ) return;
7663 sqlite3_int64 nAlloc;
7670 nAlloc = sizeof(ZipfileEntry) + nExtra;
7672 nAlloc += zipfileGetU32(&aRead[ZIPFILE_CDS_SZCOMPRESSED_OFF]);
7675 pNew = (ZipfileEntry*)sqlite3_malloc64(nAlloc);
7839 sqlite3_int64 nAlloc;
7848 nAlloc = deflateBound(&str, nIn);
7849 aOut = (u8*)sqlite3_malloc64(nAlloc);
7855 str.avail_out = nAlloc;
8756 int nAlloc; /* Byte allocated at a[] */
8767 if( pBuf->n+nByte>pBuf->nAlloc ){
8776 pBuf->nAlloc = (int)nNew;
13400 i64 nAlloc = nMax * nText + (nMax+64)*2;
13401 char *zOut = (char*)sqlite3_malloc64(nAlloc);
17459 int nAlloc = 0; /* Allocated size of p->aiIndent[], abYield */
17496 if( iOp>=nAlloc ){
17511 nAlloc += 100;
17512 p->aiIndent = (int*)sqlite3_realloc64(p->aiIndent, nAlloc*sizeof(int));
17514 abYield = (int*)sqlite3_realloc64(abYield, nAlloc*sizeof(int));
17837 sqlite3_int64 nAlloc = 0;
17857 nAlloc = nColumn*4;
17858 if( nAlloc<=0 ) nAlloc = 1;
17859 azData = sqlite3_malloc64( nAlloc*sizeof(char*) );
17869 abRowDiv = sqlite3_malloc64( nAlloc/nColumn );
17897 if( (nRow+2)*nColumn >= nAlloc ){
17898 nAlloc *= 2;
17899 azData = sqlite3_realloc64(azData, nAlloc*sizeof(char*));
17901 abRowDiv = sqlite3_realloc64(abRowDiv, nAlloc/nColumn);
18456 int nAlloc = 0;
18468 if( nCol>=nAlloc-2 ){
18469 nAlloc = nAlloc*2 + nCol + 10;
18470 azCol = sqlite3_realloc(azCol, nAlloc*sizeof(azCol[0]));
19410 i64 nAlloc = nMax * nText + (nMax+64)*2;
19411 char *zOut = (char*)sqlite3_malloc64(nAlloc);
19882 int nAlloc; /* Space allocated for z[] */
19904 if( p->n+1>=p->nAlloc ){
19905 p->nAlloc += p->nAlloc + 100;
19906 p->z = sqlite3_realloc64(p->z, p->nAlloc);
24655 int nRow, nAlloc;
24707 nRow = nAlloc = 0;
24715 if( nRow>=nAlloc ){
24717 int n2 = nAlloc*2 + 10;
24720 nAlloc = n2;
25490 i64 nAlloc = 0; /* Allocated zSql[] space */
25544 if( nSql+nLine+2>=nAlloc ){
25546 nAlloc = nSql+(nSql>>1)+nLine+100;
25547 zSql = realloc(zSql, nAlloc);
25553 assert( nAlloc>0 && zSql!=0 );