Home
last modified time | relevance | path

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

/external/chromium_org/third_party/sqlite/src/src/
Dvdbemem.c79 ((pMem->zMalloc && pMem->zMalloc==pMem->z) ? 1 : 0) + in sqlite3VdbeMemGrow()
87 if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){ in sqlite3VdbeMemGrow()
88 if( preserve && pMem->z==pMem->zMalloc ){ in sqlite3VdbeMemGrow()
89 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n); in sqlite3VdbeMemGrow()
92 sqlite3DbFree(pMem->db, pMem->zMalloc); in sqlite3VdbeMemGrow()
93 pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n); in sqlite3VdbeMemGrow()
97 if( pMem->z && preserve && pMem->zMalloc && pMem->z!=pMem->zMalloc ){ in sqlite3VdbeMemGrow()
98 memcpy(pMem->zMalloc, pMem->z, pMem->n); in sqlite3VdbeMemGrow()
104 pMem->z = pMem->zMalloc; in sqlite3VdbeMemGrow()
128 if( (f&(MEM_Str|MEM_Blob)) && pMem->z!=pMem->zMalloc ){ in sqlite3VdbeMemMakeWriteable()
[all …]
Dutf.c326 pMem->zMalloc = pMem->z; in sqlite3VdbeMemTranslate()
477 assert( m.z==m.zMalloc ); in sqlite3Utf8to16()
Dvdbeaux.c621 sqlite3DbFree(db, p->zMalloc); in freeP4()
1061 sqlite3DbFree(db, p->zMalloc); in releaseMemArray()
1082 }else if( p->zMalloc ){ in releaseMemArray()
1083 sqlite3DbFree(db, p->zMalloc); in releaseMemArray()
1084 p->zMalloc = 0; in releaseMemArray()
2852 pMem->zMalloc = 0; in sqlite3VdbeRecordUnpack()
2877 if( NEVER(pMem->zMalloc) ) sqlite3VdbeMemRelease(pMem); in sqlite3VdbeDeleteUnpackedRecord()
2928 VVA_ONLY( mem1.zMalloc = 0; ) /* Only needed by assert() statements */ in sqlite3VdbeRecordCompare()
2961 assert( mem1.zMalloc==0 ); /* See comment below */ in sqlite3VdbeRecordCompare()
2989 assert( mem1.zMalloc==0 ); in sqlite3VdbeRecordCompare()
[all …]
Dvdbe.c922 assert( pOut->zMalloc==pOut->z ); in sqlite3VdbeExec()
924 pOut->zMalloc = 0; in sqlite3VdbeExec()
1006 char *zMalloc; /* Holding variable for allocated memory */ in sqlite3VdbeExec() local
1024 zMalloc = pOut->zMalloc; in sqlite3VdbeExec()
1025 pOut->zMalloc = 0; in sqlite3VdbeExec()
1027 pIn1->zMalloc = zMalloc; in sqlite3VdbeExec()
1380 ctx.s.zMalloc = 0; in sqlite3VdbeExec()
2348 if( sMem.zMalloc ){ in sqlite3VdbeExec()
2349 assert( sMem.z==sMem.zMalloc ); in sqlite3VdbeExec()
2355 pDest->zMalloc = sMem.zMalloc; in sqlite3VdbeExec()
[all …]
DvdbeInt.h157 char *zMalloc; /* Dynamic buffer allocated by sqlite3_malloc() */ member
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_write.c133 char *zMalloc; /* Malloc'd space (possibly) used for zTerm */ member
157 char *zMalloc; /* Malloc'd space (possibly) used for zTerm */ member
1552 char *zNew = sqlite3_realloc(pTree->zMalloc, nTerm*2); in fts3NodeAddTerm()
1557 pTree->zMalloc = zNew; in fts3NodeAddTerm()
1559 pTree->zTerm = pTree->zMalloc; in fts3NodeAddTerm()
1595 pNew->zMalloc = pTree->zMalloc; in fts3NodeAddTerm()
1597 pTree->zMalloc = 0; in fts3NodeAddTerm()
1689 assert( pRight==0 || p->zMalloc==0 ); in fts3NodeFree()
1690 sqlite3_free(p->zMalloc); in fts3NodeFree()
1819 char *zNew = sqlite3_realloc(pWriter->zMalloc, nTerm*2); in fts3SegWriterAdd()
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c12386 char *zMalloc; /* Dynamic buffer allocated by sqlite3_malloc() */ member
20000 pMem->zMalloc = pMem->z; in sqlite3VdbeMemTranslate()
20151 assert( m.z==m.zMalloc ); in sqlite3Utf8to16()
56223 ((pMem->zMalloc && pMem->zMalloc==pMem->z) ? 1 : 0) +
56231 if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){
56232 if( preserve && pMem->z==pMem->zMalloc ){
56233 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n);
56236 sqlite3DbFree(pMem->db, pMem->zMalloc);
56237 pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n);
56241 if( pMem->z && preserve && pMem->zMalloc && pMem->z!=pMem->zMalloc ){
[all …]
/external/sqlite/dist/orig/
Dsqlite3.c12994 char *zMalloc; /* Dynamic buffer allocated by sqlite3_malloc() */ member
20809 pMem->zMalloc = pMem->z; in sqlite3VdbeMemTranslate()
20960 assert( m.z==m.zMalloc ); in sqlite3Utf8to16()
58427 ((pMem->zMalloc && pMem->zMalloc==pMem->z) ? 1 : 0) +
58435 if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){
58436 if( preserve && pMem->z==pMem->zMalloc ){
58437 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n);
58440 sqlite3DbFree(pMem->db, pMem->zMalloc);
58441 pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n);
58445 if( pMem->z && preserve && pMem->zMalloc && pMem->z!=pMem->zMalloc ){
[all …]
/external/sqlite/dist/
Dsqlite3.c12994 char *zMalloc; /* Dynamic buffer allocated by sqlite3_malloc() */ member
20809 pMem->zMalloc = pMem->z; in sqlite3VdbeMemTranslate()
20960 assert( m.z==m.zMalloc ); in sqlite3Utf8to16()
58455 ((pMem->zMalloc && pMem->zMalloc==pMem->z) ? 1 : 0) +
58463 if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){
58464 if( preserve && pMem->z==pMem->zMalloc ){
58465 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n);
58468 sqlite3DbFree(pMem->db, pMem->zMalloc);
58469 pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n);
58473 if( pMem->z && preserve && pMem->zMalloc && pMem->z!=pMem->zMalloc ){
[all …]