Home
last modified time | relevance | path

Searched refs:pRc (Results 1 – 25 of 41) sorted by relevance

12

/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest7.c27 testCompareInt(LSM_OK, ret, pRc); in do_test_api1_lsm()
35 testCompareInt(LSM_OK, ret, pRc); in do_test_api1_lsm()
124 testCaseFinish(*pRc); in do_test_api1()
132 int *pRc in newLsmConnection() argument
135 if( *pRc==0 ){ in newLsmConnection()
139 if( *pRc==0 ){ in newLsmConnection()
149 if( *pRc==0 ){ in testPagesize()
168 if( *pRc==0 && testCaseBegin(pRc, zPattern, "api2.lsm") ){ in do_test_api2()
196 testCaseFinish(*pRc); in do_test_api2()
204 do_test_api1(zPattern, pRc); in test_api()
[all …]
H A Dlsmtest2.c103 if( *pRc==0 ){ in testCompareStr()
106 *pRc = 1; in testCompareStr()
122 *pRc = 1; in testCompareInt()
133 *pRc = 0; in testCaseStart()
148 if( *pRc==0 ){ in testCaseBegin()
184 int *pRc in testSetupSavedLsmdb() argument
186 if( *pRc==0 ){ in testSetupSavedLsmdb()
195 *pRc = rc; in testSetupSavedLsmdb()
214 if( *pRc==0 ){ in testCompareCksumLsmdb()
407 pRc in crash_test2()
[all …]
H A Dlsmtest8.c30 int *pRc in doSetupStep() argument
34 if( *pRc==0 ){ in doSetupStep()
46 if( *pRc==0 ){ in doSetupStep()
86 if( *pRc==0 ){ in testReadFile()
90 *pRc = 1; in testReadFile()
110 int *pRc in testWriteFile() argument
112 if( *pRc==0 ){ in testWriteFile()
116 *pRc = 1; in testWriteFile()
204 *pRc = rc; in doLiveRecovery()
233 *pRc = rc; in doWriterCrash1()
[all …]
H A Dlsmtest1.c164 int rc = *pRc; in testDbContents()
226 *pRc = rc; in testDbContents()
255 if( *pRc==0 ){ in testReopenRecover()
261 *pRc = tdb_open(zLib, 0, 0, ppDb); in testReopenRecover()
339 *pRc = rc; in doDataTest1()
386 int *pRc in testCompareDb() argument
396 if( *pRc==0 ){ in testCompareDb()
418 for(i=0; i<nData && *pRc==0; i++){ in testCompareDb()
484 *pRc = rc; in doDataTest2()
559 int rc = *pRc; in doDataTest3()
[all …]
H A Dlsmtest5.c150 if( *pRc==0 ){ in dbComputeCksum()
188 for(i=1; *pRc==0 && i<=iMax; i++){ in dbReadOperation()
198 testFetchStr(pDb, zKey, zCksum, pRc); in dbReadOperation()
220 if( *pRc==0 && tdb_transaction_support(pDb) ){ in dbWriteOperation()
223 *pRc = rc; in dbWriteOperation()
226 testWriteStr(pDb, zKey, zValue, pRc); in dbWriteOperation()
234 testWriteStr(pDb, zKey, zCksum, pRc); in dbWriteOperation()
588 int bRun = testCaseBegin(pRc, zPattern, in do_test_mt1()
600 pDb = testOpen(zSystem, 1, pRc); in do_test_mt1()
612 testCaseFinish(*pRc); in do_test_mt1()
[all …]
H A Dlsmtest.h159 TestDb *testOpen(const char *zSystem, int, int *pRc);
160 void testReopen(TestDb **ppDb, int *pRc);
170 void testBegin(TestDb *pDb, int iTrans, int *pRc);
171 void testCommit(TestDb *pDb, int iTrans, int *pRc);
201 void do_crash_test(const char *zPattern, int *pRc);
214 void test_oom(const char *zPattern, int *pRc);
222 void test_api(const char *zPattern, int *pRc);
264 void test_data_1(const char *, const char *, int *pRc);
265 void test_data_2(const char *, const char *, int *pRc);
266 void test_data_3(const char *, const char *, int *pRc);
[all …]
H A Dlsmtest6.c72 int *pRc in testOomOpen() argument
79 *pRc = rc; in testOomOpen()
88 int *pRc in testOomFetch() argument
118 *pRc = rc; in testOomFetch()
127 int *pRc in testOomWrite() argument
136 *pRc = rc; in testOomWrite()
146 int *pRc in testOomFetchStr() argument
158 int *pRc in testOomFetchData() argument
171 int *pRc in testOomWriteStr() argument
183 int *pRc in testOomWriteData() argument
[all …]
H A Dlsmtest4.c42 int *pRc /* IN/OUT: return code */ in do_mc_test() argument
61 pDb = testOpen(zSystem, 1, pRc); in do_mc_test()
66 aReader[iReader].pDb = testOpen(zSystem, 0, pRc); in do_mc_test()
75 testWriteDatasourceRange(pDb, pData, iFirst, pTest->nWriteStep, pRc); in do_mc_test()
79 testDbContents(pDb, pData, nDomain, 0, iLast, iLast, 1, pRc); in do_mc_test()
91 aReader[iReader].pDb, pData, nDomain, 0, iLast, iLast, 1, pRc in do_mc_test()
114 int *pRc /* IN/OUT: Error code */ in test_mc() argument
122 if( testCaseBegin(pRc, zPattern, "mc1.%s.%d", zSystem, i) ){ in test_mc()
123 do_mc_test(zSystem, &aTest[i], pRc); in test_mc()
124 testCaseFinish(*pRc); in test_mc()
H A Dlsmtest_main.c13 *pRc = rc; in testSetErrorFunc()
36 if( *pRc==0 ){ in testFetch()
57 if( *pRc==0 ){ in testWrite()
70 if( *pRc==0 ){ in testDelete()
82 if( *pRc==0 ){ in testDeleteRange()
90 if( *pRc==0 ){ in testBegin()
97 if( *pRc==0 ){ in testCommit()
105 if( *pRc==0 ){
142 int *pRc in testFetchCompare() argument
159 if( *pRc==0 in testFetchCompare()
[all …]
H A Dlsmtest3.c98 void testWriteDatasource(TestDb *pDb, Datasource *pData, int i, int *pRc){ in testWriteDatasource() argument
102 testWrite(pDb, pKey, nKey, pVal, nVal, pRc); in testWriteDatasource()
108 void testDeleteDatasource(TestDb *pDb, Datasource *pData, int i, int *pRc){ in testDeleteDatasource() argument
111 testDelete(pDb, pKey, nKey, pRc); in testDeleteDatasource()
123 int *pRc /* IN/OUT: Error code */ in testWriteDatasourceRange() argument
127 testWriteDatasource(pDb, pData, iFirst+i, pRc); in testWriteDatasourceRange()
136 int *pRc /* IN/OUT: Error code */ in testDeleteDatasourceRange() argument
140 testDeleteDatasource(pDb, pData, iFirst+i, pRc); in testDeleteDatasourceRange()
220 int *pRc in test_rollback() argument
222 if( *pRc==0 ){ in test_rollback()
[all …]
H A Dlsmtest9.c38 int *pRc /* OUT: Error code */ in doDataTest4() argument
106 *pRc = rc; in doDataTest4()
123 int *pRc /* IN/OUT: Error code */ in test_data_4() argument
133 for(i=0; *pRc==LSM_OK && i<ArraySize(aTest); i++){ in test_data_4()
135 if( testCaseBegin(pRc, zPattern, "%s", zName) ){ in test_data_4()
136 doDataTest4(zSystem, &aTest[i], pRc); in test_data_4()
H A Dlsmtest_io.c81 static i64 getNextSize(char *zIn, char **pzOut, int *pRc){ in getNextSize() argument
83 if( *pRc==0 ){ in getNextSize()
87 *pRc = 1; in getNextSize()
/sqlite-3.40.0/ext/fts5/
H A Dfts5_buffer.c27 *pRc = SQLITE_NOMEM; in sqlite3Fts5BufferSize()
64 int *pRc, in sqlite3Fts5BufferAppendBlob() argument
82 int *pRc, in sqlite3Fts5BufferAppendString() argument
100 int *pRc, in sqlite3Fts5BufferAppendPrintf() argument
104 if( *pRc==SQLITE_OK ){ in sqlite3Fts5BufferAppendPrintf()
112 *pRc = SQLITE_NOMEM; in sqlite3Fts5BufferAppendPrintf()
122 if( *pRc==SQLITE_OK ){ in sqlite3Fts5Mprintf()
128 *pRc = SQLITE_NOMEM; in sqlite3Fts5Mprintf()
157 int *pRc, in sqlite3Fts5BufferSet() argument
263 if( *pRc==SQLITE_OK ){ in sqlite3Fts5MallocZero()
[all …]
H A Dfts5Int.h286 char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...);
294 #define fts5BufferGrow(pRc,pBuf,nn) ( \ argument
296 sqlite3Fts5BufferSize((pRc),(pBuf),(nn)+(pBuf)->n) \
339 void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte);
340 char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
H A Dfts5_index.c852 if( *pRc==SQLITE_OK && p->nRef>1 ){ in fts5StructureMakeWritable()
986 if( *pRc==SQLITE_OK ){ in fts5StructureAddLevel()
1000 *pRc = SQLITE_NOMEM; in fts5StructureAddLevel()
1010 int *pRc, in fts5StructureExtendLevel() argument
1016 if( *pRc==SQLITE_OK ){ in fts5StructureExtendLevel()
1033 *pRc = SQLITE_NOMEM; in fts5StructureExtendLevel()
3215 int *pRc, in fts5IndexExtractColset() argument
3220 if( *pRc==SQLITE_OK ){ in fts5IndexExtractColset()
3388 int *pRc = &pIter->pIndex->rc; in fts5IterSetOutputs_Full() local
3404 if( *pRc==SQLITE_OK ){ in fts5IterSetOutputCb()
[all …]
/sqlite-3.40.0/ext/repair/
H A Dcheckindex.c70 if( *pRc==SQLITE_OK ){ in cidxMalloc()
75 *pRc = SQLITE_NOMEM; in cidxMalloc()
238 if( *pRc==SQLITE_OK ){ in cidxMprintf()
240 *pRc = SQLITE_NOMEM; in cidxMprintf()
259 if( *pRc==SQLITE_OK ){ in cidxPrepare()
261 *pRc = SQLITE_NOMEM; in cidxPrepare()
265 if( *pRc!=SQLITE_OK ){ in cidxPrepare()
278 if( *pRc==SQLITE_OK ) *pRc = rc; in cidxFinalize()
283 if( *pRc==SQLITE_OK ){ in cidxStrdup()
285 zRet = cidxMalloc(pRc, n+1); in cidxStrdup()
[all …]
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_ckpt.c247 if( *pRc ) return; in ckptSetValue()
252 *pRc = LSM_NOMEM_BKPT; in ckptSetValue()
277 if( *pRc==LSM_OK ){ in ckptAddChecksum()
280 ckptSetValue(p, nCkpt, aCksum[0], pRc); in ckptAddChecksum()
311 int *pRc in ckptExportSegment() argument
315 ckptAppend64(p, piOut, pSeg->iRoot, pRc); in ckptExportSegment()
316 ckptAppend64(p, piOut, pSeg->nSize, pRc); in ckptExportSegment()
364 int *pRc in ckptExportLog() argument
372 ckptAppend64(p, &iOut, iOff, pRc); in ckptExportLog()
741 if( *pRc==LSM_OK ){ in ckptTryLoad()
[all …]
H A Dlsm_mem.c55 void *lsmMallocRc(lsm_env *pEnv, size_t N, int *pRc){ in lsmMallocRc() argument
57 if( *pRc==LSM_OK ){ in lsmMallocRc()
60 *pRc = LSM_NOMEM_BKPT; in lsmMallocRc()
66 void *lsmMallocZeroRc(lsm_env *pEnv, size_t N, int *pRc){ in lsmMallocZeroRc() argument
68 if( *pRc==LSM_OK ){ in lsmMallocZeroRc()
71 *pRc = LSM_NOMEM_BKPT; in lsmMallocZeroRc()
84 void *lsmReallocOrFreeRc(lsm_env *pEnv, void *p, size_t N, int *pRc){ in lsmReallocOrFreeRc() argument
86 if( *pRc ){ in lsmReallocOrFreeRc()
90 if( !pRet ) *pRc = LSM_NOMEM_BKPT; in lsmReallocOrFreeRc()
H A Dlsm_tree.c315 assert( *pRc==LSM_OK ); in treeShmChunkRc()
627 if( *pRc==LSM_OK ){ in treeShmalloc()
668 *pRc = rc; in treeShmalloc()
685 *pRc = rc; in treeShmalloc()
714 assert( *pRc==LSM_OK ); in treeShmallocZero()
734 int *pRc in newTreeKey() argument
746 if( *pRc ) return 0; in newTreeKey()
780 if( *pRc ) return 0; in newTreeKey()
791 int *pRc in copyTreeNode() argument
808 int *pRc in copyTreeLeaf() argument
[all …]
H A Dlsm_log.c844 int *pRc /* IN/OUT: Error code */ in logReaderBlob() argument
847 int rc = *pRc; /* Return code */ in logReaderBlob()
895 *pRc = rc; in logReaderBlob()
902 int *pRc /* IN/OUT: Error code */ in logReaderVarint() argument
904 if( *pRc==LSM_OK ){ in logReaderVarint()
907 logReaderBlob(p, 0, 10, &aVarint, pRc); in logReaderVarint()
911 if( LSM_OK==*pRc ) lsmVarintGet32(aVarint, piVal); in logReaderVarint()
918 logReaderBlob(p, 0, 1, &pPtr, pRc); in logReaderByte()
923 if( *pRc==LSM_OK ){ in logReaderCksum()
932 logReaderBlob(p, pBuf, 8, &pPtr, pRc); in logReaderCksum()
[all …]
/sqlite-3.40.0/ext/misc/
H A Dunionvtab.c256 if( *pRc==SQLITE_OK ){ in unionMalloc()
349 if( *pRc==SQLITE_OK ){ in unionPrepare()
353 *pRc = rc; in unionPrepare()
376 if( *pRc==SQLITE_OK ){ in unionPreparePrintf()
400 if( *pRc==SQLITE_OK ){
401 *pRc = rc;
417 if( *pRc==SQLITE_OK ){ in unionFinalize()
418 *pRc = rc; in unionFinalize()
578 *pRc = rc; in unionSourceToStr()
785 int rc = *pRc; in unionConfigureVtab()
[all …]
/sqlite-3.40.0/ext/fts3/
H A Dfts3.c581 if( *pRc ) return; in fts3DbExec()
586 *pRc = SQLITE_NOMEM; in fts3DbExec()
634 if( *pRc==SQLITE_OK ){ in fts3DeclareVtab()
663 *pRc = rc; in fts3DeclareVtab()
754 if( *pRc==SQLITE_OK ){ in fts3DatabasePageSize()
775 *pRc = rc; in fts3DatabasePageSize()
818 if( *pRc==SQLITE_OK ){ in fts3Appendf()
4181 *pRc = rc; in fts3EvalAllocateReaders()
5624 int rc = *pRc; in sqlite3Fts3EvalTestDeferred()
5644 *pRc = rc; in sqlite3Fts3EvalTestDeferred()
[all …]
/sqlite-3.40.0/ext/expert/
H A Dsqlite3expert.c175 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
177 assert( *pRc==SQLITE_OK ); in idxMalloc()
183 *pRc = SQLITE_NOMEM; in idxMalloc()
231 int *pRc, in idxHashAdd() argument
301 assert( *pRc==SQLITE_OK ); in idxNewConstraint()
679 if( *pRc==SQLITE_OK ) *pRc = rc; in idxFinalize()
796 if( *pRc==SQLITE_OK ){ in idxAppendText()
808 *pRc = SQLITE_NOMEM; in idxAppendText()
851 if( zRet ) zRet = idxAppendText(pRc, zRet, ", "); in idxAppendColDefn()
868 zRet = idxAppendText(pRc, zRet, " DESC"); in idxAppendColDefn()
[all …]
/sqlite-3.40.0/ext/rtree/
H A Dgeopoly.c279 if( pRc ) *pRc = SQLITE_OK; in geopolyParseJson()
287 if( pRc ) *pRc = rc; in geopolyParseJson()
301 int *pRc /* Write error here */ in geopolyFuncParam() argument
321 if( pRc ) *pRc = SQLITE_NOMEM; in geopolyFuncParam()
337 if( pRc ) *pRc = SQLITE_OK; in geopolyFuncParam()
342 if( pRc ) *pRc = SQLITE_NOMEM; in geopolyFuncParam()
345 return geopolyParseJson(zJson, pRc); in geopolyFuncParam()
347 if( pRc ) *pRc = SQLITE_ERROR; in geopolyFuncParam()
643 p = geopolyFuncParam(context, pPoly, pRc); in geopolyBBox()
657 if( pRc ) *pRc = SQLITE_OK; in geopolyBBox()
[all …]
/sqlite-3.40.0/ext/session/
H A Dsqlite3session.c2016 *pRc = SQLITE_NOMEM; in sessionBufferGrow()
2023 *pRc = SQLITE_NOMEM; in sessionBufferGrow()
2029 return (*pRc!=SQLITE_OK); in sessionBufferGrow()
2041 int rc = *pRc; in sessionAppendValue()
2050 *pRc = rc; in sessionAppendValue()
2092 int *pRc in sessionAppendBlob() argument
2111 int *pRc in sessionAppendStr() argument
2178 if( *pRc==SQLITE_OK ){ in sessionAppendCol()
2206 *pRc = SQLITE_NOMEM; in sessionAppendCol()
5461 if( *pRc==SQLITE_OK ){ in sessionAppendRecordMerge()
[all …]

12