Home
last modified time | relevance | path

Searched refs:pNew (Results 1 – 25 of 108) sorted by relevance

12345

/sqlite-3.40.0/ext/misc/
H A Dstmt.c83 stmt_vtab *pNew; in stmtConnect() local
104 pNew = sqlite3_malloc64( sizeof(*pNew) ); in stmtConnect()
105 *ppVtab = (sqlite3_vtab*)pNew; in stmtConnect()
106 if( pNew==0 ) return SQLITE_NOMEM; in stmtConnect()
107 memset(pNew, 0, sizeof(*pNew)); in stmtConnect()
108 pNew->db = db; in stmtConnect()
227 memset(pNew, 0, sizeof(StmtRow)); in stmtFilter()
229 pNew->zSql = (char*)&pNew[1]; in stmtFilter()
256 pNew->iRowid = iRowid++; in stmtFilter()
257 *ppRow = pNew; in stmtFilter()
[all …]
H A Dclosure.c309 p = pNew; in closureAvlInsert()
310 pNew->pUp = 0; in closureAvlInsert()
334 pNew->pBefore = 0; in closureAvlInsert()
335 pNew->pAfter = 0; in closureAvlInsert()
336 pNew->height = 1; in closureAvlInsert()
519 pNew = sqlite3_malloc( sizeof(*pNew) ); in closureConnect()
522 memset(pNew, 0, sizeof(*pNew)); in closureConnect()
523 pNew->db = db; in closureConnect()
636 closure_avl *pNew = sqlite3_malloc( sizeof(*pNew) ); in closureInsertNode() local
638 memset(pNew, 0, sizeof(*pNew)); in closureInsertNode()
[all …]
H A Dfuzzer.c519 pNew = sqlite3_malloc64( sizeof(*pNew) + nModule + 1); in fuzzerConnect()
525 memset(pNew, 0, sizeof(*pNew)); in fuzzerConnect()
526 pNew->zClassName = (char*)&pNew[1]; in fuzzerConnect()
835 pNew = pX; in fuzzerInsert()
840 pX = pNew; in fuzzerInsert()
879 memset(pNew, 0, sizeof(*pNew)); in fuzzerNewStem()
880 pNew->zBasis = (char*)&pNew[1]; in fuzzerNewStem()
882 memcpy(pNew->zBasis, zWord, pNew->nBasis+1); in fuzzerNewStem()
889 pNew->rBaseCost = pNew->rCostX = rBaseCost; in fuzzerNewStem()
894 return pNew; in fuzzerNewStem()
[all …]
H A Dzipfile.c382 pNew->aBuffer = (u8*)&pNew[1]; in zipfileConnect()
384 pNew->zFile = (char*)&pNew->aBuffer[ZIPFILE_BUFFER_SIZE]; in zipfileConnect()
852 pNew->aExtra = (u8*)&pNew[1]; in zipfileGetEntry()
857 pNew->mUnixTime = zipfileMtime(&pNew->cds); in zipfileGetEntry()
875 pNew->aData = &pNew->aExtra[nExtra]; in zipfileGetEntry()
876 memcpy(pNew->aData, &aBlob[pNew->iDataOff], pNew->cds.szCompressed); in zipfileGetEntry()
1218 *pp = pNew; in zipfileAddEntry()
1237 iOff += (int)pNew->cds.nExtra + pNew->cds.nFile + pNew->cds.nComment; in zipfileLoadDirectory()
1341 if( pNew ){ in zipfileNewEntry()
1346 pNew = 0; in zipfileNewEntry()
[all …]
H A Dcarray.c130 sqlite3_vtab *pNew; in carrayConnect() local
142 pNew = *ppVtab = sqlite3_malloc( sizeof(*pNew) ); in carrayConnect()
144 memset(pNew, 0, sizeof(*pNew)); in carrayConnect()
421 carray_bind *pNew; in sqlite3_carray_bind() local
423 pNew = sqlite3_malloc64(sizeof(*pNew)); in sqlite3_carray_bind()
424 if( pNew==0 ){ in sqlite3_carray_bind()
430 pNew->nData = nData; in sqlite3_carray_bind()
431 pNew->mFlags = mFlags; in sqlite3_carray_bind()
447 if( pNew->aData==0 ){ in sqlite3_carray_bind()
448 sqlite3_free(pNew); in sqlite3_carray_bind()
[all …]
H A Damatch.c360 p = pNew; in amatchAvlInsert()
361 pNew->pUp = 0; in amatchAvlInsert()
386 pNew->pBefore = 0; in amatchAvlInsert()
387 pNew->pAfter = 0; in amatchAvlInsert()
388 pNew->height = 1; in amatchAvlInsert()
389 pNew->imbalance = 0; in amatchAvlInsert()
850 pNew = sqlite3_malloc( sizeof(*pNew) ); in amatchConnect()
853 memset(pNew, 0, sizeof(*pNew)); in amatchConnect()
854 pNew->db = db; in amatchConnect()
891 amatchFree(pNew); in amatchConnect()
[all …]
H A Dvtshim.c78 vtshim_vtab *pNew; in vtshimCreate() local
89 pNew = sqlite3_malloc( sizeof(*pNew) ); in vtshimCreate()
92 memset(pNew, 0, sizeof(*pNew)); in vtshimCreate()
96 sqlite3_free(pNew); in vtshimCreate()
100 pNew->pAux = pAux; in vtshimCreate()
104 pAux->pAllVtab = pNew; in vtshimCreate()
117 vtshim_vtab *pNew; in vtshimConnect() local
128 pNew = sqlite3_malloc( sizeof(*pNew) ); in vtshimConnect()
131 memset(pNew, 0, sizeof(*pNew)); in vtshimConnect()
135 sqlite3_free(pNew); in vtshimConnect()
[all …]
/sqlite-3.40.0/src/
H A Dtest_vfstrace.c619 sqlite3_io_methods *pNew = sqlite3_malloc( sizeof(*pNew) ); in vfstraceOpen() local
621 memset(pNew, 0, sizeof(*pNew)); in vfstraceOpen()
635 if( pNew->iVersion>=2 ){ in vfstraceOpen()
641 pFile->pMethods = pNew; in vfstraceOpen()
840 sqlite3_vfs *pNew; in vfstrace_register() local
852 memset(pNew, 0, nByte); in vfstrace_register()
859 pNew->pAppData = pInfo; in vfstrace_register()
860 pNew->xOpen = vfstraceOpen; in vfstrace_register()
872 if( pNew->iVersion>=2 ){ in vfstrace_register()
875 if( pNew->iVersion>=3 ){ in vfstrace_register()
[all …]
H A Dwhere.c2810 pNew = pBuilder->pNew; in whereLoopAddBtreeIndex()
2814 pNew->u.btree.nEq, pNew->nSkip, pNew->rRun)); in whereLoopAddBtreeIndex()
2877 if( pNew->nLTerm>=pNew->nLSlot in whereLoopAddBtreeIndex()
3098 pNew->rRun = sqlite3LogEstAdd(pNew->rRun, pNew->nOut + 16); in whereLoopAddBtreeIndex()
3158 pNew->aLTerm[pNew->nLTerm++] = 0; in whereLoopAddBtreeIndex()
3393 pNew = pBuilder->pNew; in whereLoopAddBtree()
3688 WhereLoop *pNew = pBuilder->pNew; in whereLoopAddVirtualOne() local
3819 assert( pNew->nLTerm<=pNew->nLSlot ); in whereLoopAddVirtualOne()
4017 pNew = pBuilder->pNew; in whereLoopAddVirtual()
4144 pNew = pBuilder->pNew; in whereLoopAddOr()
[all …]
H A Dhash.c24 assert( pNew!=0 ); in sqlite3HashInit()
25 pNew->first = 0; in sqlite3HashInit()
26 pNew->count = 0; in sqlite3HashInit()
27 pNew->htsize = 0; in sqlite3HashInit()
28 pNew->ht = 0; in sqlite3HashInit()
81 pEntry->chain = pNew; in insertElement()
86 pNew->next = pHead; in insertElement()
90 pHead->prev = pNew; in insertElement()
92 pNew->next = pH->first; in insertElement()
94 pNew->prev = 0; in insertElement()
[all …]
H A Dattach.c110 pNew = &db->aDb[db->init.iDb]; in attachFunc()
111 if( pNew->pBt ) sqlite3BtreeClose(pNew->pBt); in attachFunc()
112 pNew->pBt = 0; in attachFunc()
113 pNew->pSchema = 0; in attachFunc()
150 pNew = &db->aDb[db->nDb]; in attachFunc()
151 memset(pNew, 0, sizeof(*pNew)); in attachFunc()
177 pNew->pSchema = sqlite3SchemaGet(db, pNew->pBt); in attachFunc()
178 if( !pNew->pSchema ){ in attachFunc()
180 }else if( pNew->pSchema->file_format && pNew->pSchema->enc!=ENC(db) ){ in attachFunc()
185 sqlite3BtreeEnter(pNew->pBt); in attachFunc()
[all …]
H A Dalter.c331 assert( pNew ); in sqlite3AlterFinishAddColumn()
337 pCol = &pNew->aCol[pNew->nCol-1]; in sqlite3AlterFinishAddColumn()
358 if( pNew->pIndex ){ in sqlite3AlterFinishAddColumn()
422 zDb, pNew->u.tab.addColOffset, zCol, pNew->u.tab.addColOffset, in sqlite3AlterFinishAddColumn()
479 Table *pNew; in sqlite3AlterBeginAddColumn() local
524 pNew->nTabRef = 1; in sqlite3AlterBeginAddColumn()
528 assert( nAlloc>=pNew->nCol && nAlloc%8==0 && nAlloc-pNew->nCol<8 ); in sqlite3AlterBeginAddColumn()
531 if( !pNew->aCol || !pNew->zName ){ in sqlite3AlterBeginAddColumn()
535 memcpy(pNew->aCol, pTab->aCol, sizeof(Column)*pNew->nCol); in sqlite3AlterBeginAddColumn()
545 pNew->nTabRef = 1; in sqlite3AlterBeginAddColumn()
[all …]
H A Dmutex_noop.c111 sqlite3_debug_mutex *pNew = 0; in debugMutexAlloc() local
115 pNew = sqlite3Malloc(sizeof(*pNew)); in debugMutexAlloc()
116 if( pNew ){ in debugMutexAlloc()
117 pNew->id = id; in debugMutexAlloc()
118 pNew->cnt = 0; in debugMutexAlloc()
129 pNew = &aStatic[id-2]; in debugMutexAlloc()
130 pNew->id = id; in debugMutexAlloc()
134 return (sqlite3_mutex*)pNew; in debugMutexAlloc()
H A Dtest_window.c142 TestWindow *pNew; in test_create_window() local
155 memset(pNew, 0, sizeof(TestWindow)); in test_create_window()
156 pNew->xStep = Tcl_DuplicateObj(objv[3]); in test_create_window()
157 pNew->xFinal = Tcl_DuplicateObj(objv[4]); in test_create_window()
158 pNew->xValue = Tcl_DuplicateObj(objv[5]); in test_create_window()
159 pNew->xInverse = Tcl_DuplicateObj(objv[6]); in test_create_window()
160 pNew->interp = interp; in test_create_window()
162 Tcl_IncrRefCount(pNew->xStep); in test_create_window()
163 Tcl_IncrRefCount(pNew->xFinal); in test_create_window()
164 Tcl_IncrRefCount(pNew->xValue); in test_create_window()
[all …]
H A Dmalloc.c507 void *pNew; in sqlite3Realloc() local
527 pNew = pOld; in sqlite3Realloc()
548 if( pNew ){ in sqlite3Realloc()
557 return pNew; in sqlite3Realloc()
718 void *pNew = 0; in dbReallocFinish() local
724 if( pNew ){ in dbReallocFinish()
733 if( !pNew ){ in dbReallocFinish()
740 return pNew; in dbReallocFinish()
748 void *pNew; in sqlite3DbReallocOrFree() local
750 if( !pNew ){ in sqlite3DbReallocOrFree()
[all …]
/sqlite-3.40.0/ext/fts1/
H A Dft_hash.c43 assert( pNew!=0 ); in HashInit()
50 pNew->first = 0; in HashInit()
51 pNew->count = 0; in HashInit()
52 pNew->htsize = 0; in HashInit()
53 pNew->ht = 0; in HashInit()
55 pNew->xFree = free; in HashInit()
211 pNew->next = pHead; in insertElement()
215 pHead->prev = pNew; in insertElement()
219 pNew->prev = 0; in insertElement()
220 pH->first = pNew; in insertElement()
[all …]
H A Dfts1_hash.c53 assert( pNew!=0 ); in sqlite3Fts1HashInit()
57 pNew->first = 0; in sqlite3Fts1HashInit()
58 pNew->count = 0; in sqlite3Fts1HashInit()
59 pNew->htsize = 0; in sqlite3Fts1HashInit()
60 pNew->ht = 0; in sqlite3Fts1HashInit()
62 pNew->xFree = free; in sqlite3Fts1HashInit()
169 pNew->next = pHead; in insertElement()
173 pHead->prev = pNew; in insertElement()
177 pNew->prev = 0; in insertElement()
178 pH->first = pNew; in insertElement()
[all …]
/sqlite-3.40.0/ext/fts3/
H A Dfts3_hash.c60 assert( pNew!=0 ); in sqlite3Fts3HashInit()
63 pNew->copyKey = copyKey; in sqlite3Fts3HashInit()
64 pNew->first = 0; in sqlite3Fts3HashInit()
65 pNew->count = 0; in sqlite3Fts3HashInit()
66 pNew->htsize = 0; in sqlite3Fts3HashInit()
67 pNew->ht = 0; in sqlite3Fts3HashInit()
174 pNew->next = pHead; in fts3HashInsertElement()
178 pHead->prev = pNew; in fts3HashInsertElement()
182 pNew->prev = 0; in fts3HashInsertElement()
183 pH->first = pNew; in fts3HashInsertElement()
[all …]
H A Dfts3_unicode.c228 if( pNew==NULL ) return SQLITE_NOMEM; in unicodeCreate()
229 memset(pNew, 0, sizeof(unicode_tokenizer)); in unicodeCreate()
230 pNew->eRemoveDiacritic = 1; in unicodeCreate()
237 pNew->eRemoveDiacritic = 1; in unicodeCreate()
240 pNew->eRemoveDiacritic = 0; in unicodeCreate()
243 pNew->eRemoveDiacritic = 2; in unicodeCreate()
246 rc = unicodeAddExceptions(pNew, 1, &z[11], n-11); in unicodeCreate()
249 rc = unicodeAddExceptions(pNew, 0, &z[11], n-11); in unicodeCreate()
258 unicodeDestroy((sqlite3_tokenizer *)pNew); in unicodeCreate()
259 pNew = 0; in unicodeCreate()
[all …]
/sqlite-3.40.0/ext/fts2/
H A Dfts2_hash.c62 assert( pNew!=0 ); in sqlite3Fts2HashInit()
65 pNew->copyKey = copyKey; in sqlite3Fts2HashInit()
66 pNew->first = 0; in sqlite3Fts2HashInit()
67 pNew->count = 0; in sqlite3Fts2HashInit()
68 pNew->htsize = 0; in sqlite3Fts2HashInit()
69 pNew->ht = 0; in sqlite3Fts2HashInit()
176 pNew->next = pHead; in insertElement()
180 pHead->prev = pNew; in insertElement()
184 pNew->prev = 0; in insertElement()
185 pH->first = pNew; in insertElement()
[all …]
/sqlite-3.40.0/ext/expert/
H A Dsqlite3expert.c303 if( pNew ){ in idxNewConstraint()
304 pNew->zColl = (char*)&pNew[1]; in idxNewConstraint()
307 return pNew; in idxNewConstraint()
484 if( pNew ){ in expertBestIndex()
505 if( pNew ){ in expertBestIndex()
736 pNew->aCol = (IdxColumn*)&pNew[1]; in idxGetTableInfo()
770 pNew = 0; in idxGetTableInfo()
776 *ppOut = pNew; in idxGetTableInfo()
1877 pNew = 0; in sqlite3_expert_new()
1879 return pNew; in sqlite3_expert_new()
[all …]
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_log.c366 LogWriter *pNew; in lsmLogBegin() local
376 if( pNew ){ in lsmLogBegin()
383 assert( (u8 *)(&pNew[1])==(u8 *)(&((&pNew->buf)[1])) ); in lsmLogBegin()
384 memset(pNew, 0, ((u8 *)&pNew->buf) - (u8 *)pNew); in lsmLogBegin()
385 pNew->buf.n = 0; in lsmLogBegin()
446 logUpdateCksum(pNew, pNew->buf.n); in lsmLogBegin()
448 pNew->iCksumBuf = pNew->buf.n = 0; in lsmLogBegin()
465 assert( pNew->jump.iStart>pNew->iOff ); in lsmLogBegin()
467 iRound = firstByteOnSector(pNew, pNew->jump.iStart); in lsmLogBegin()
468 if( iRound>pNew->iOff ) pNew->jump.iStart = iRound; in lsmLogBegin()
[all …]
/sqlite-3.40.0/ext/fts5/
H A Dfts5_hash.c87 Fts5Hash *pNew; in sqlite3Fts5HashNew() local
90 if( pNew==0 ){ in sqlite3Fts5HashNew()
95 pNew->pnByte = pnByte; in sqlite3Fts5HashNew()
96 pNew->eDetail = pConfig->eDetail; in sqlite3Fts5HashNew()
98 pNew->nSlot = 1024; in sqlite3Fts5HashNew()
101 if( pNew->aSlot==0 ){ in sqlite3Fts5HashNew()
102 sqlite3_free(pNew); in sqlite3Fts5HashNew()
323 Fts5HashEntry *pNew; in sqlite3Fts5HashWrite() local
327 pNew->nAlloc = (int)nNew; in sqlite3Fts5HashWrite()
329 *pp = pNew; in sqlite3Fts5HashWrite()
[all …]
/sqlite-3.40.0/test/
H A Ddbfuzz.c167 if( pNew ) return pNew; in createVFile()
177 pNew = &g.aFile[i]; in createVFile()
189 pNew->nRef = 0; in createVFile()
190 pNew->sz = sz; in createVFile()
191 pNew->a = malloc(sz); in createVFile()
193 if( pNew->a==0 || fread(pNew->a, sz, 1, in)<1 ){ in createVFile()
195 free(pNew->a); in createVFile()
196 pNew->a = 0; in createVFile()
198 pNew->sz = -1; in createVFile()
199 pNew = 0; in createVFile()
[all …]
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_mem.c123 pTm->xFree(pNew); in tmMalloc()
130 pNew->iForeGuard = FOREGUARD; in tmMalloc()
131 pNew->nByte = nByte; in tmMalloc()
132 pNew->pNext = pTm->pFirst; in tmMalloc()
135 pTm->pFirst->pPrev = pNew; in tmMalloc()
137 pTm->pFirst = pNew; in tmMalloc()
171 pNew->pAgg = pAgg; in tmMalloc()
215 void *pNew; in tmRealloc() local
217 pNew = tmMalloc(pTm, nByte); in tmRealloc()
218 if( pNew && p ){ in tmRealloc()
[all …]

12345