• Home
  • Raw
  • Download

Lines Matching refs:nAlloc

813   int nAlloc;  member
848 if( p->z==0 || p->n+len>=p->nAlloc ){ in appendText()
849 p->nAlloc = p->nAlloc*2 + len + 20; in appendText()
850 p->z = realloc(p->z, p->nAlloc); in appendText()
3861 unsigned nAlloc; /* Slots allocated for aOp[] and aArg[] */ member
4078 p->nAlloc = N; in re_resize()
4087 if( p->nAlloc<=p->nState && re_resize(p, p->nAlloc*2) ) return 0; in re_insert()
4108 if( p->nState+N>=p->nAlloc && re_resize(p, p->nAlloc*2+N) ) return; in re_copy()
7540 sqlite3_int64 nAlloc; in zipfileGetEntry() local
7547 nAlloc = sizeof(ZipfileEntry) + nExtra; in zipfileGetEntry()
7549 nAlloc += zipfileGetU32(&aRead[ZIPFILE_CDS_SZCOMPRESSED_OFF]); in zipfileGetEntry()
7552 pNew = (ZipfileEntry*)sqlite3_malloc64(nAlloc); in zipfileGetEntry()
7716 sqlite3_int64 nAlloc; in zipfileDeflate() local
7725 nAlloc = deflateBound(&str, nIn); in zipfileDeflate()
7726 aOut = (u8*)sqlite3_malloc64(nAlloc); in zipfileDeflate()
7732 str.avail_out = nAlloc; in zipfileDeflate()
8633 int nAlloc; /* Byte allocated at a[] */ member
8644 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
8653 pBuf->nAlloc = (int)nNew; in zipfileBufferGrow()
14081 int nAlloc = 0; /* Allocated size of p->aiIndent[], abYield */ in explain_data_prepare() local
14118 if( iOp>=nAlloc ){ in explain_data_prepare()
14133 nAlloc += 100; in explain_data_prepare()
14134 p->aiIndent = (int*)sqlite3_realloc64(p->aiIndent, nAlloc*sizeof(int)); in explain_data_prepare()
14136 abYield = (int*)sqlite3_realloc64(abYield, nAlloc*sizeof(int)); in explain_data_prepare()
14459 sqlite3_int64 nAlloc = 0; in exec_prepared_stmt_columnar() local
14479 nAlloc = nColumn*4; in exec_prepared_stmt_columnar()
14480 if( nAlloc<=0 ) nAlloc = 1; in exec_prepared_stmt_columnar()
14481 azData = sqlite3_malloc64( nAlloc*sizeof(char*) ); in exec_prepared_stmt_columnar()
14491 abRowDiv = sqlite3_malloc64( nAlloc/nColumn ); in exec_prepared_stmt_columnar()
14519 if( (nRow+2)*nColumn >= nAlloc ){ in exec_prepared_stmt_columnar()
14520 nAlloc *= 2; in exec_prepared_stmt_columnar()
14521 azData = sqlite3_realloc64(azData, nAlloc*sizeof(char*)); in exec_prepared_stmt_columnar()
14523 abRowDiv = sqlite3_realloc64(abRowDiv, nAlloc/nColumn); in exec_prepared_stmt_columnar()
15078 int nAlloc = 0; in tableColumnList() local
15090 if( nCol>=nAlloc-2 ){ in tableColumnList()
15091 nAlloc = nAlloc*2 + nCol + 10; in tableColumnList()
15092 azCol = sqlite3_realloc(azCol, nAlloc*sizeof(azCol[0])); in tableColumnList()
16031 i64 nAlloc = nMax * nText + (nMax+64)*2; in shellEscapeCrnl() local
16032 char *zOut = (char*)sqlite3_malloc64(nAlloc); in shellEscapeCrnl()
16518 int nAlloc; /* Space allocated for z[] */ member
16540 if( p->n+1>=p->nAlloc ){ in import_append_char()
16541 p->nAlloc += p->nAlloc + 100; in import_append_char()
16542 p->z = sqlite3_realloc64(p->z, p->nAlloc); in import_append_char()
21889 int nRow, nAlloc; in do_meta_command() local
21941 nRow = nAlloc = 0; in do_meta_command()
21949 if( nRow>=nAlloc ){ in do_meta_command()
21951 int n2 = nAlloc*2 + 10; in do_meta_command()
21954 nAlloc = n2; in do_meta_command()
22724 int nAlloc = 0; /* Allocated zSql[] space */ in process_input() local
22778 if( nSql+nLine+2>=nAlloc ){ in process_input()
22780 nAlloc = nSql+(nSql>>1)+nLine+100; in process_input()
22781 zSql = realloc(zSql, nAlloc); in process_input()
22787 assert( nAlloc>0 && zSql!=0 ); in process_input()