| /sqlite-3.40.0/src/ |
| H A D | threads.c | 69 p->pIn = pIn; in sqlite3ThreadCreate() 77 rc = pthread_create(&p->tid, 0, xTask, pIn); in sqlite3ThreadCreate() 81 p->pOut = xTask(pIn); in sqlite3ThreadCreate() 118 void *pIn; /* Argument to xTask */ member 139 p->pResult = p->xTask(p->pIn); in sqlite3ThreadProc() 167 p->pIn = pIn; in sqlite3ThreadCreate() 175 p->pResult = xTask(pIn); in sqlite3ThreadCreate() 221 void *pIn; /* Argument to xTask */ member 240 p->pIn = pIn; in sqlite3ThreadCreate() 243 p->pResult = xTask(pIn); in sqlite3ThreadCreate() [all …]
|
| H A D | rowset.c | 281 while( pIn ){ in rowSetEntrySort() 285 pIn = rowSetEntryMerge(aBucket[i], pIn); in rowSetEntrySort() 289 pIn = pNext; in rowSetEntrySort() 291 pIn = aBucket[0]; in rowSetEntrySort() 294 pIn = pIn ? rowSetEntryMerge(pIn, aBucket[i]) : aBucket[i]; in rowSetEntrySort() 296 return pIn; in rowSetEntrySort() 310 assert( pIn!=0 ); in rowSetTreeToList() 311 if( pIn->pLeft ){ in rowSetTreeToList() 316 *ppFirst = pIn; in rowSetTreeToList() 319 rowSetTreeToList(pIn->pRight, &pIn->pRight, ppLast); in rowSetTreeToList() [all …]
|
| H A D | util.c | 1663 if( pIn==0 || pIn[1]+nInt > pIn[0] ){ in sqlite3VListAdd() 1669 pIn = pOut; in sqlite3VListAdd() 1672 i = pIn[1]; in sqlite3VListAdd() 1673 pIn[i] = iVal; in sqlite3VListAdd() 1674 pIn[i+1] = nInt; in sqlite3VListAdd() 1676 pIn[1] = i+nInt; in sqlite3VListAdd() 1677 assert( pIn[1]<=pIn[0] ); in sqlite3VListAdd() 1680 return pIn; in sqlite3VListAdd() 1691 mx = pIn[1]; in sqlite3VListNumToName() 1694 if( pIn[i]==iVal ) return (char*)&pIn[i+2]; in sqlite3VListNumToName() [all …]
|
| H A D | wherecode.c | 582 struct InLoop *pIn; in codeEqualityTerm() local 655 pIn = pLevel->u.in.aInLoop; in codeEqualityTerm() 656 if( pIn ){ in codeEqualityTerm() 658 pIn += i; in codeEqualityTerm() 670 pIn->iCur = iTab; in codeEqualityTerm() 671 pIn->eEndLoopOp = bRev ? OP_Prev : OP_Next; in codeEqualityTerm() 673 pIn->iBase = iReg - i; in codeEqualityTerm() 674 pIn->nPrefix = i; in codeEqualityTerm() 676 pIn->nPrefix = 0; in codeEqualityTerm() 679 pIn->eEndLoopOp = OP_Noop; in codeEqualityTerm() [all …]
|
| H A D | pcache.c | 769 static PgHdr *pcacheSortDirtyList(PgHdr *pIn){ in pcacheSortDirtyList() argument 773 while( pIn ){ in pcacheSortDirtyList() 774 p = pIn; in pcacheSortDirtyList() 775 pIn = p->pDirty; in pcacheSortDirtyList()
|
| H A D | select.c | 3210 addr2 = sqlite3VdbeAddOp4(v, OP_Compare, pIn->iSdst, regPrev+1, pIn->nSdst, in generateOutputSubroutine() 3214 sqlite3VdbeAddOp3(v, OP_Copy, pIn->iSdst, regPrev+1, pIn->nSdst-1); in generateOutputSubroutine() 3231 sqlite3VdbeAddOp3(v, OP_MakeRecord, pIn->iSdst, pIn->nSdst, r1); in generateOutputSubroutine() 3245 testcase( pIn->nSdst>1 ); in generateOutputSubroutine() 3247 sqlite3VdbeAddOp4(v, OP_MakeRecord, pIn->iSdst, pIn->nSdst, in generateOutputSubroutine() 3250 pIn->iSdst, pIn->nSdst); in generateOutputSubroutine() 3261 testcase( pIn->nSdst>1 ); in generateOutputSubroutine() 3262 sqlite3ExprCodeMove(pParse, pIn->iSdst, pDest->iSDParm, pIn->nSdst); in generateOutputSubroutine() 3274 pDest->nSdst = pIn->nSdst; in generateOutputSubroutine() 3276 sqlite3ExprCodeMove(pParse, pIn->iSdst, pDest->iSdst, pIn->nSdst); in generateOutputSubroutine() [all …]
|
| H A D | where.c | 6329 struct InLoop *pIn; in sqlite3WhereEnd() local 6332 for(j=pLevel->u.in.nIn, pIn=&pLevel->u.in.aInLoop[j-1]; j>0; j--, pIn--){ in sqlite3WhereEnd() 6335 sqlite3VdbeJumpHere(v, pIn->addrInTop+1); in sqlite3WhereEnd() 6336 if( pIn->eEndLoopOp!=OP_Noop ){ in sqlite3WhereEnd() 6337 if( pIn->nPrefix ){ in sqlite3WhereEnd() 6357 pIn->iBase, pIn->nPrefix); in sqlite3WhereEnd() 6363 sqlite3VdbeJumpHere(v, pIn->addrInTop+1); in sqlite3WhereEnd() 6366 sqlite3VdbeAddOp2(v, pIn->eEndLoopOp, pIn->iCur, pIn->addrInTop); in sqlite3WhereEnd() 6368 VdbeCoverageIf(v, pIn->eEndLoopOp==OP_Prev); in sqlite3WhereEnd() 6369 VdbeCoverageIf(v, pIn->eEndLoopOp==OP_Next); in sqlite3WhereEnd() [all …]
|
| H A D | tclsqlite.c | 973 sqlite3_value *pIn = argv[i]; in tclSqlFunc() local 977 switch( sqlite3_value_type(pIn) ){ in tclSqlFunc() 979 int bytes = sqlite3_value_bytes(pIn); in tclSqlFunc() 980 pVal = Tcl_NewByteArrayObj(sqlite3_value_blob(pIn), bytes); in tclSqlFunc() 984 sqlite_int64 v = sqlite3_value_int64(pIn); in tclSqlFunc() 993 double r = sqlite3_value_double(pIn); in tclSqlFunc() 1002 int bytes = sqlite3_value_bytes(pIn); in tclSqlFunc() 1003 pVal = Tcl_NewStringObj((char *)sqlite3_value_text(pIn), bytes); in tclSqlFunc()
|
| H A D | expr.c | 2644 static int sqlite3InRhsIsConstant(Expr *pIn){ in sqlite3InRhsIsConstant() argument 2647 assert( !ExprHasProperty(pIn, EP_xIsSelect) ); in sqlite3InRhsIsConstant() 2648 pLHS = pIn->pLeft; in sqlite3InRhsIsConstant() 2649 pIn->pLeft = 0; in sqlite3InRhsIsConstant() 2650 res = sqlite3ExprIsConstant(pIn); in sqlite3InRhsIsConstant() 2651 pIn->pLeft = pLHS; in sqlite3InRhsIsConstant() 3374 int sqlite3ExprCheckIN(Parse *pParse, Expr *pIn){ in sqlite3ExprCheckIN() argument 3375 int nVector = sqlite3ExprVectorSize(pIn->pLeft); in sqlite3ExprCheckIN() 3376 if( ExprUseXSelect(pIn) && !pParse->db->mallocFailed ){ in sqlite3ExprCheckIN() 3377 if( nVector!=pIn->x.pSelect->pEList->nExpr ){ in sqlite3ExprCheckIN() [all …]
|
| H A D | vdbesort.c | 1137 void *pIn /* Argument passed into xTask() */ in vdbeSorterCreateThread() argument 1140 return sqlite3ThreadCreate(&pTask->pThread, xTask, pIn); in vdbeSorterCreateThread()
|
| /sqlite-3.40.0/ext/session/ |
| H A D | sqlite3session.h | 1487 int nIn, const void *pIn, 1624 int (*xInputA)(void *pIn, void *pData, int *pnData), 1632 int (*xInput)(void *pIn, void *pData, int *pnData), 1633 void *pIn, 1639 int (*xInput)(void *pIn, void *pData, int *pnData), 1640 void *pIn 1644 int (*xInput)(void *pIn, void *pData, int *pnData), 1645 void *pIn, 1660 void *pIn 1668 int (*xInput)(void *pIn, void *pData, int *pnData), [all …]
|
| H A D | sqlite3session.c | 2837 pRet->in.pIn = pIn; in sessionChangesetStart() 2896 memmove(pIn->buf.aBuf, &pIn->buf.aBuf[pIn->iNext], nMove); in sessionDiscardData() 2898 pIn->buf.nBuf -= pIn->iNext; in sessionDiscardData() 2900 pIn->nData = pIn->buf.nBuf; in sessionDiscardData() 2914 while( !pIn->bEof && (pIn->iNext+nByte)>=pIn->nData && rc==SQLITE_OK ){ in sessionInputBuffer() 2919 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew); in sessionInputBuffer() 2927 pIn->aData = pIn->buf.aBuf; in sessionInputBuffer() 2928 pIn->nData = pIn->buf.nBuf; in sessionInputBuffer() 3023 if( pIn->iNext>=pIn->nData ){ in sessionReadRecord() 3106 while( (pIn->iNext + nRead)<pIn->nData && pIn->aData[pIn->iNext + nRead] ){ in sessionChangesetBufferTblhdr() [all …]
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | compress.c | 51 const unsigned char *pIn; in compressFunc() local 59 pIn = sqlite3_value_blob(argv[0]); in compressFunc() 69 rc = compress(&pOut[j], &nOut, pIn, nIn); in compressFunc() 87 const unsigned char *pIn; in uncompressFunc() local 94 pIn = sqlite3_value_blob(argv[0]); in uncompressFunc() 98 nOut = (nOut<<7) | (pIn[i]&0x7f); in uncompressFunc() 99 if( (pIn[i]&0x80)!=0 ){ i++; break; } in uncompressFunc() 102 rc = uncompress(pOut, &nOut, &pIn[i], nIn-i); in uncompressFunc()
|
| H A D | uuid.c | 143 sqlite3_value *pIn, /* Input text */ in sqlite3UuidInputToBlob() argument 146 switch( sqlite3_value_type(pIn) ){ in sqlite3UuidInputToBlob() 148 const unsigned char *z = sqlite3_value_text(pIn); in sqlite3UuidInputToBlob() 153 int n = sqlite3_value_bytes(pIn); in sqlite3UuidInputToBlob() 154 return n==16 ? sqlite3_value_blob(pIn) : 0; in sqlite3UuidInputToBlob()
|
| H A D | decimal.c | 66 sqlite3_value *pIn, in decimal_new() argument 86 if( sqlite3_value_type(pIn)==SQLITE_NULL ){ in decimal_new() 91 n = sqlite3_value_bytes(pIn); in decimal_new() 92 zIn = sqlite3_value_text(pIn); in decimal_new()
|
| H A D | spellfix.c | 655 static void editDist3ConfigDelete(void *pIn){ in editDist3ConfigDelete() argument 656 EditDist3Config *p = (EditDist3Config*)pIn; in editDist3ConfigDelete()
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_config.c | 41 static const char *fts5ConfigSkipWhitespace(const char *pIn){ in fts5ConfigSkipWhitespace() argument 42 const char *p = pIn; in fts5ConfigSkipWhitespace() 54 static const char *fts5ConfigSkipBareword(const char *pIn){ in fts5ConfigSkipBareword() argument 55 const char *p = pIn; in fts5ConfigSkipBareword() 57 if( p==pIn ) p = 0; in fts5ConfigSkipBareword() 67 static const char *fts5ConfigSkipLiteral(const char *pIn){ in fts5ConfigSkipLiteral() argument 68 const char *p = pIn; in fts5ConfigSkipLiteral() 88 if( *p=='\'' && 0==((p-pIn)%2) ){ in fts5ConfigSkipLiteral() 122 if( p==pIn ) p = 0; in fts5ConfigSkipLiteral() 735 static const char *fts5ConfigSkipArgs(const char *pIn){ in fts5ConfigSkipArgs() argument [all …]
|
| H A D | fts5_buffer.c | 282 char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){ in sqlite3Fts5Strndup() argument 286 nIn = (int)strlen(pIn); in sqlite3Fts5Strndup() 290 memcpy(zRet, pIn, nIn); in sqlite3Fts5Strndup()
|
| H A D | fts5Int.h | 340 char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
|
| H A D | fts5_index.c | 5495 static int fts5IndexCharlen(const char *pIn, int nIn){ in fts5IndexCharlen() argument 5499 if( (unsigned char)pIn[i++]>=0xc0 ){ in fts5IndexCharlen() 5500 while( i<nIn && (pIn[i] & 0xc0)==0x80 ) i++; in fts5IndexCharlen()
|
| /sqlite-3.40.0/test/ |
| H A D | dbfuzz2.c | 382 unsigned char *pIn; in main() local 384 pIn = readFile(argv[i], &nIn); in main() 385 if( pIn ){ in main() 386 LLVMFuzzerTestOneInput((const uint8_t*)pIn, (size_t)nIn); in main() 387 free(pIn); in main()
|
| H A D | vt02.c | 374 sqlite3_value *pIn, *pVal; in vt02Filter() local 395 pIn = argv[iArg++]; in vt02Filter() 396 assert( sqlite3_value_type(pIn)==SQLITE_NULL ); in vt02Filter() 397 for( rc = sqlite3_vtab_in_first(pIn, &pVal); in vt02Filter() 399 rc = sqlite3_vtab_in_next(pIn, &pVal) in vt02Filter()
|
| /sqlite-3.40.0/ext/fts1/ |
| H A D | fulltext.c | 381 DocList *pIn, int iOffset, DocList *pOut){ in mergeInit() argument 382 readerInit(&m->in, pIn); in mergeInit() 387 assert( pIn==NULL || pIn->iType <= DL_POSITIONS ); in mergeInit() 1081 DocList *pIn, int iOffset, DocList *out){ in query_merge() argument 1085 if( pIn!=NULL && !pIn->nData ){ in query_merge() 1094 mergeInit(&merge, pIn, iOffset, out); in query_merge()
|
| H A D | fts1.c | 667 static sqlite_int64 nextDocid(DocListReader *pIn){ in nextDocid() argument 668 skipPositionList(pIn); in nextDocid() 669 return atEnd(pIn) ? 0 : readDocid(pIn); in nextDocid()
|
| /sqlite-3.40.0/ext/rbu/ |
| H A D | test_rbu.c | 51 sqlite3_value *pIn = apVal[i]; in test_rbu_delta() local 52 const char *z = (const char*)sqlite3_value_text(pIn); in test_rbu_delta()
|