Lines Matching defs:nAlloc
1912 int nAlloc;
1947 if( p->z==0 || p->n+len>=p->nAlloc ){
1948 p->nAlloc = p->nAlloc*2 + len + 20;
1949 p->z = realloc(p->z, p->nAlloc);
6427 unsigned nAlloc; /* Slots allocated for aOp[] and aArg[] */
6651 p->nAlloc = N;
6660 if( p->nAlloc<=p->nState && re_resize(p, p->nAlloc*2) ) return 0;
6681 if( p->nState+N>=p->nAlloc && re_resize(p, p->nAlloc*2+N) ) return;
10199 sqlite3_int64 nAlloc;
10206 nAlloc = sizeof(ZipfileEntry) + nExtra;
10208 nAlloc += zipfileGetU32(&aRead[ZIPFILE_CDS_SZCOMPRESSED_OFF]);
10211 pNew = (ZipfileEntry*)sqlite3_malloc64(nAlloc);
10375 sqlite3_int64 nAlloc;
10384 nAlloc = deflateBound(&str, nIn);
10385 aOut = (u8*)sqlite3_malloc64(nAlloc);
10391 str.avail_out = nAlloc;
11312 int nAlloc; /* Byte allocated at a[] */
11323 if( pBuf->n+nByte>pBuf->nAlloc ){
11332 pBuf->nAlloc = (int)nNew;
17261 i64 nAlloc = nMax * nText + (nMax+64)*2;
17262 char *zOut = (char*)sqlite3_malloc64(nAlloc);
21457 int nAlloc = 0; /* Allocated size of p->aiIndent[], abYield */
21490 if( iOp>=nAlloc ){
21491 nAlloc += 100;
21492 p->aiIndent = (int*)sqlite3_realloc64(p->aiIndent, nAlloc*sizeof(int));
21494 abYield = (int*)sqlite3_realloc64(abYield, nAlloc*sizeof(int));
21866 sqlite3_int64 nAlloc = 0;
21887 nAlloc = nColumn*4;
21888 if( nAlloc<=0 ) nAlloc = 1;
21889 azData = sqlite3_malloc64( nAlloc*sizeof(char*) );
21899 abRowDiv = sqlite3_malloc64( nAlloc/nColumn );
21928 if( (nRow+2)*nColumn >= nAlloc ){
21929 nAlloc *= 2;
21930 azData = sqlite3_realloc64(azData, nAlloc*sizeof(char*));
21932 abRowDiv = sqlite3_realloc64(abRowDiv, nAlloc/nColumn);
22479 int nAlloc = 0;
22491 if( nCol>=nAlloc-2 ){
22492 nAlloc = nAlloc*2 + nCol + 10;
22493 azCol = sqlite3_realloc(azCol, nAlloc*sizeof(azCol[0]));
23875 int nAlloc; /* Space allocated for z[] */
23897 if( p->n+1>=p->nAlloc ){
23898 p->nAlloc += p->nAlloc + 100;
23899 p->z = sqlite3_realloc64(p->z, p->nAlloc);
28869 int nRow, nAlloc;
28921 nRow = nAlloc = 0;
28929 if( nRow>=nAlloc ){
28931 int n2 = nAlloc*2 + 10;
28934 nAlloc = n2;
29894 i64 nAlloc = 0; /* Allocated zSql[] space */
29950 if( nSql+nLine+2>=nAlloc ){
29952 nAlloc = nSql+(nSql>>1)+nLine+100;
29953 zSql = realloc(zSql, nAlloc);
29959 assert( nAlloc>0 && zSql!=0 );