Home
last modified time | relevance | path

Searched refs:nAlloc (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dtable.c31 int nAlloc; member
57 if( p->nData + need >= p->nAlloc ){ in sqlite_get_table_cb()
59 p->nAlloc = p->nAlloc*2 + need + 1; in sqlite_get_table_cb()
60 azNew = realloc( p->azResult, sizeof(char*)*p->nAlloc ); in sqlite_get_table_cb()
144 res.nAlloc = 20; in sqlite_get_table()
146 res.azResult = malloc( sizeof(char*)*res.nAlloc ); in sqlite_get_table()
173 if( res.nAlloc>res.nData ){ in sqlite_get_table()
180 res.nAlloc = res.nData+1; in sqlite_get_table()
H A Dprintf.c649 int nAlloc; /* Amount of space allocated in zText */ member
662 if( pM->nChar + nNewChar + 1 > pM->nAlloc ){ in mout()
664 nNewChar = pM->nAlloc - pM->nChar - 1; in mout()
666 pM->nAlloc = pM->nChar + nNewChar*2 + 1; in mout()
668 pM->zText = pM->xRealloc(0, pM->nAlloc); in mout()
673 pM->zText = pM->xRealloc(pM->zText, pM->nAlloc); in mout()
701 sM.nAlloc = nInitBuf; in base_vprintf()
708 }else if( sM.nAlloc>sM.nChar+10 ){ in base_vprintf()
H A Dvacuum.c29 int nAlloc; /* Amount of space allocated to z[] */ member
53 if( p->z==0 || p->nUsed + nText + 1 >= p->nAlloc ){ in appendText()
55 p->nAlloc = p->nUsed + nText + 1000; in appendText()
56 zNew = sqliteRealloc(p->z, p->nAlloc); in appendText()
H A Dexpr.c156 pNew->nExpr = pNew->nAlloc = p->nExpr; in sqliteExprListDup()
188 pNew->nSrc = pNew->nAlloc = p->nSrc; in sqliteSrcListDup()
210 pNew->nId = pNew->nAlloc = p->nId; in sqliteIdListDup()
255 assert( pList->nAlloc==0 ); in sqliteExprListAppend()
257 if( pList->nAlloc<=pList->nExpr ){ in sqliteExprListAppend()
258 pList->nAlloc = pList->nAlloc*2 + 4; in sqliteExprListAppend()
259 pList->a = sqliteRealloc(pList->a, pList->nAlloc*sizeof(pList->a[0])); in sqliteExprListAppend()
262 pList->nExpr = pList->nAlloc = 0; in sqliteExprListAppend()
285 assert( pList->a!=0 || (pList->nExpr==0 && pList->nAlloc==0) ); in sqliteExprListDelete()
286 assert( pList->nExpr<=pList->nAlloc ); in sqliteExprListDelete()
H A Dtest1.c303 int nAlloc; /* Space allocated */ member
313 if( p->nUsed + n + 2 > p->nAlloc ){ in dstrAppend()
315 p->nAlloc = p->nAlloc*2 + n + 200; in dstrAppend()
316 zNew = sqliteRealloc(p->z, p->nAlloc); in dstrAppend()
H A Dbuild.c1844 pList->nAlloc = 0; in sqliteIdListAppend()
1846 if( pList->nId>=pList->nAlloc ){ in sqliteIdListAppend()
1848 pList->nAlloc = pList->nAlloc*2 + 5; in sqliteIdListAppend()
1849 a = sqliteRealloc(pList->a, pList->nAlloc*sizeof(pList->a[0]) ); in sqliteIdListAppend()
1900 pList->nAlloc = 1; in sqliteSrcListAppend()
1902 if( pList->nSrc>=pList->nAlloc ){ in sqliteSrcListAppend()
1904 pList->nAlloc *= 2; in sqliteSrcListAppend()
1906 sizeof(*pList) + (pList->nAlloc-1)*sizeof(pList->a[0]) ); in sqliteSrcListAppend()
H A DsqliteInt.h723 int nAlloc; /* Number of entries allocated below */ member
750 int nAlloc; /* Number of entries allocated for a[] below */ member
770 i16 nAlloc; /* Number of entries allocated in a[] below */ member
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dthreadtest1.c63 int nAlloc; /* Number of slots allocated for azElem[] */ member
78 if( pResult->nElem + nArg >= pResult->nAlloc ){ in db_query_callback()
79 if( pResult->nAlloc==0 ){ in db_query_callback()
80 pResult->nAlloc = nArg+1; in db_query_callback()
82 pResult->nAlloc = pResult->nAlloc*2 + nArg + 1; in db_query_callback()
84 pResult->azElem = realloc( pResult->azElem, pResult->nAlloc*sizeof(char*)); in db_query_callback()
/illumos-gate/usr/src/common/ficl/
H A Ddictionary.c463 size_t nAlloc; in ficlDictionaryCreateHashed() local
465 nAlloc = sizeof (ficlDictionary) + (size * sizeof (ficlCell)) in ficlDictionaryCreateHashed()
468 dictionary = ficlMalloc(nAlloc); in ficlDictionaryCreateHashed()