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