Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/libsqlite/src/
H A Dtable.c34 int nAlloc; member
60 if( p->nData + need >= p->nAlloc ){ in sqlite_get_table_cb()
62 p->nAlloc = p->nAlloc*2 + need + 1; in sqlite_get_table_cb()
63 azNew = realloc( p->azResult, sizeof(char*)*p->nAlloc ); in sqlite_get_table_cb()
147 res.nAlloc = 20; in sqlite_get_table()
149 res.azResult = malloc( sizeof(char*)*res.nAlloc ); in sqlite_get_table()
176 if( res.nAlloc>res.nData ){ in sqlite_get_table()
183 res.nAlloc = res.nData+1; in sqlite_get_table()
H A Dprintf.c652 int nAlloc; /* Amount of space allocated in zText */ member
665 if( pM->nChar + nNewChar + 1 > pM->nAlloc ){ in mout()
667 nNewChar = pM->nAlloc - pM->nChar - 1; in mout()
669 pM->nAlloc = pM->nChar + nNewChar*2 + 1; in mout()
671 pM->zText = pM->xRealloc(0, pM->nAlloc); in mout()
676 pM->zText = pM->xRealloc(pM->zText, pM->nAlloc); in mout()
704 sM.nAlloc = nInitBuf; in base_vprintf()
711 }else if( sM.nAlloc>sM.nChar+10 ){ in base_vprintf()
H A Dvacuum.c32 int nAlloc; /* Amount of space allocated to z[] */ member
56 if( p->z==0 || p->nUsed + nText + 1 >= p->nAlloc ){ in appendText()
58 p->nAlloc = p->nUsed + nText + 1000; in appendText()
59 zNew = sqliteRealloc(p->z, p->nAlloc); in appendText()
H A Dexpr.c159 pNew->nExpr = pNew->nAlloc = p->nExpr; in sqliteExprListDup()
191 pNew->nSrc = pNew->nAlloc = p->nSrc; in sqliteSrcListDup()
213 pNew->nId = pNew->nAlloc = p->nId; in sqliteIdListDup()
258 assert( pList->nAlloc==0 ); in sqliteExprListAppend()
260 if( pList->nAlloc<=pList->nExpr ){ in sqliteExprListAppend()
261 pList->nAlloc = pList->nAlloc*2 + 4; in sqliteExprListAppend()
262 pList->a = sqliteRealloc(pList->a, pList->nAlloc*sizeof(pList->a[0])); in sqliteExprListAppend()
265 pList->nExpr = pList->nAlloc = 0; in sqliteExprListAppend()
288 assert( pList->a!=0 || (pList->nExpr==0 && pList->nAlloc==0) ); in sqliteExprListDelete()
289 assert( pList->nExpr<=pList->nAlloc ); in sqliteExprListDelete()
H A Dtest1.c306 int nAlloc; /* Space allocated */ member
316 if( p->nUsed + n + 2 > p->nAlloc ){ in dstrAppend()
318 p->nAlloc = p->nAlloc*2 + n + 200; in dstrAppend()
319 zNew = sqliteRealloc(p->z, p->nAlloc); in dstrAppend()
H A Dbuild.c1847 pList->nAlloc = 0; in sqliteIdListAppend()
1849 if( pList->nId>=pList->nAlloc ){ in sqliteIdListAppend()
1851 pList->nAlloc = pList->nAlloc*2 + 5; in sqliteIdListAppend()
1852 a = sqliteRealloc(pList->a, pList->nAlloc*sizeof(pList->a[0]) ); in sqliteIdListAppend()
1903 pList->nAlloc = 1; in sqliteSrcListAppend()
1905 if( pList->nSrc>=pList->nAlloc ){ in sqliteSrcListAppend()
1907 pList->nAlloc *= 2; in sqliteSrcListAppend()
1909 sizeof(*pList) + (pList->nAlloc-1)*sizeof(pList->a[0]) ); in sqliteSrcListAppend()
H A DsqliteInt.h726 int nAlloc; /* Number of entries allocated below */ member
753 int nAlloc; /* Number of entries allocated for a[] below */ member
773 i16 nAlloc; /* Number of entries allocated in a[] below */ member
/titanic_50/usr/src/lib/libsqlite/test/
H A Dthreadtest1.c66 int nAlloc; /* Number of slots allocated for azElem[] */ member
81 if( pResult->nElem + nArg >= pResult->nAlloc ){ in db_query_callback()
82 if( pResult->nAlloc==0 ){ in db_query_callback()
83 pResult->nAlloc = nArg+1; in db_query_callback()
85 pResult->nAlloc = pResult->nAlloc*2 + nArg + 1; in db_query_callback()
87 pResult->azElem = realloc( pResult->azElem, pResult->nAlloc*sizeof(char*)); in db_query_callback()