| /sqlite-3.40.0/ext/misc/ |
| H A D | dbdump.c | 288 p->xCallback(z, p->pArg); in output_formatted() 343 p->xCallback("'", p->pArg); in output_quoted_escaped_string() 352 p->xCallback("'", p->pArg); in output_quoted_escaped_string() 363 p->xCallback(zCR, p->pArg); in output_quoted_escaped_string() 365 p->xCallback("'", p->pArg); in output_quoted_escaped_string() 386 DState *p = (DState*)pArg; in dump_callback() 416 p->xCallback(zSql, p->pArg); in dump_callback() 418 p->xCallback(";\n", p->pArg); in dump_callback() 578 p->xCallback(z, p->pArg); in output_sql_from_query() 580 p->xCallback(",", p->pArg); in output_sql_from_query() [all …]
|
| H A D | decimal.c | 482 Decimal *pArg; in decimalSumStep() local 498 pArg = decimal_new(context, argv[0], 0, 0); in decimalSumStep() 499 decimal_add(p, pArg); in decimalSumStep() 500 decimal_free(pArg); in decimalSumStep() 508 Decimal *pArg; in decimalSumInverse() local 513 pArg = decimal_new(context, argv[0], 0, 0); in decimalSumInverse() 514 if( pArg ) pArg->sign = !pArg->sign; in decimalSumInverse() 515 decimal_add(p, pArg); in decimalSumInverse() 516 decimal_free(pArg); in decimalSumInverse()
|
| H A D | vfslog.c | 107 static int vlogFileControl(sqlite3_file*, int op, void *pArg); 550 static int vlogFileControl(sqlite3_file *pFile, int op, void *pArg){ in vlogFileControl() argument 555 rc = p->pReal->pMethods->xFileControl(p->pReal, op, pArg); in vlogFileControl() 557 *(char**)pArg = sqlite3_mprintf("vlog/%z", *(char**)pArg); in vlogFileControl() 561 vlogLogPrint(p->pLog, tStart, tElapse, "TRACE", op, -1, pArg, rc); in vlogFileControl() 563 const char **azArg = (const char **)pArg; in vlogFileControl() 566 sqlite3_int64 sz = *(sqlite3_int64*)pArg; in vlogFileControl()
|
| H A D | cksumvfs.c | 217 static int cksmFileControl(sqlite3_file*, int op, void *pArg); 551 static int cksmFileControl(sqlite3_file *pFile, int op, void *pArg){ in cksmFileControl() argument 556 char **azArg = (char**)pArg; in cksmFileControl() 591 sqlite3_file **ppFile = (sqlite3_file**)pArg; in cksmFileControl() 595 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in cksmFileControl() 597 *(char**)pArg = sqlite3_mprintf("cksm/%z", *(char**)pArg); in cksmFileControl()
|
| H A D | appendvfs.c | 147 static int apndFileControl(sqlite3_file*, int op, void *pArg); 352 static int apndFileControl(sqlite3_file *pFile, int op, void *pArg){ in apndFileControl() argument 356 if( op==SQLITE_FCNTL_SIZE_HINT ) *(sqlite3_int64*)pArg += paf->iPgOne; in apndFileControl() 357 rc = pFile->pMethods->xFileControl(pFile, op, pArg); in apndFileControl() 359 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", paf->iPgOne,*(char**)pArg); in apndFileControl()
|
| /sqlite-3.40.0/ext/rtree/ |
| H A D | test_rtreedoc.c | 208 Tcl_Obj *pArg; in box_query() local 215 pArg = Tcl_NewObj(); in box_query() 216 Tcl_IncrRefCount(pArg); in box_query() 226 Tcl_ListObjAppendElement(interp, pArg, pTmp); in box_query() 237 Tcl_ListObjAppendElement(interp, pArg, pTmp); in box_query() 248 Tcl_ListObjAppendElement(interp, pArg, pTmp); in box_query() 253 Tcl_ListObjAppendElement(interp, pArg, Tcl_NewIntObj(pInfo->iLevel)); in box_query() 257 Tcl_ListObjAppendElement(interp, pArg, Tcl_NewIntObj(pInfo->mxLevel)); in box_query() 273 Tcl_ListObjAppendElement(interp, pArg, in box_query() 277 Tcl_ListObjAppendElement(interp, pEval, pArg); in box_query() [all …]
|
| /sqlite-3.40.0/test/ |
| H A D | tt3_stress.c | 20 static char *stress_thread_1(int iTid, void *pArg){ in stress_thread_1() argument 39 static char *stress_thread_2(int iTid, void *pArg){ in stress_thread_2() argument 55 static char *stress_thread_3(int iTid, void *pArg){ in stress_thread_3() argument 78 static char *stress_thread_4(int iTid, void *pArg){ in stress_thread_4() argument 83 int iArg = PTR2INT(pArg); in stress_thread_4() 108 static char *stress_thread_5(int iTid, void *pArg){ in stress_thread_5() argument 111 int iArg = PTR2INT(pArg); in stress_thread_5() 263 static char *stress2_workload19(int iTid, void *pArg){ in stress2_workload19() argument 266 const char *zDb = (const char*)pArg; in stress2_workload19() 284 static char *stress2_thread_wrapper(int iTid, void *pArg){ in stress2_thread_wrapper() argument [all …]
|
| H A D | threadtest3.c | 539 static int busyhandler(void *pArg, int n){ in busyhandler() argument 660 void * pArg = va_arg(ap, void*); in getAndBindSqlStatement() local 664 sqlite3_bind_int64(pStmt, i, *(i64 *)pArg); in getAndBindSqlStatement() 779 Thread *p = (Thread *)pArg; in launch_thread_main() 780 p->zRes = p->xProc(p->iTid, p->pArg); in launch_thread_main() 785 static void *launch_thread_main(void *pArg){ in launch_thread_main() argument 786 Thread *p = (Thread *)pArg; in launch_thread_main() 787 p->zRes = p->xProc(p->iTid, p->pArg); in launch_thread_main() 806 p->pArg = pArg; in launch_thread_x() 1070 int iArg = PTR2INT(pArg); in walthread2_thread() [all …]
|
| /sqlite-3.40.0/src/ |
| H A D | main.c | 1728 void *pArg in sqlite3_busy_handler() argument 1752 void *pArg in sqlite3_progress_handler() argument 1971 if( !pArg ){ in createFunctionApi() 1976 pArg->nRef = 0; in createFunctionApi() 1978 pArg->pUserData = p; in createFunctionApi() 1983 if( pArg && pArg->nRef==0 ){ in createFunctionApi() 1986 sqlite3_free(pArg); in createFunctionApi() 2150 db->pTraceArg = pArg; in sqlite3_trace() 2174 db->pTraceArg = pArg; in sqlite3_trace_v2() 2191 void *pArg in sqlite3_profile() argument [all …]
|
| H A D | rowset.c | 152 void sqlite3RowSetClear(void *pArg){ in sqlite3RowSetClear() argument 153 RowSet *p = (RowSet*)pArg; in sqlite3RowSetClear() 172 void sqlite3RowSetDelete(void *pArg){ in sqlite3RowSetDelete() argument 173 sqlite3RowSetClear(pArg); in sqlite3RowSetDelete() 174 sqlite3DbFree(((RowSet*)pArg)->db, pArg); in sqlite3RowSetDelete()
|
| H A D | test_vfs.c | 174 static int tvfsFileControl(sqlite3_file*, int op, void *pArg); 529 char **argv = (char**)pArg; in tvfsFileControl() 573 return sqlite3OsFileControl(pFd->pReal, op, pArg); in tvfsFileControl() 637 Tcl_Obj *pArg = Tcl_NewObj(); in tvfsOpen() local 638 Tcl_IncrRefCount(pArg); in tvfsOpen() 642 Tcl_ListObjAppendElement(0, pArg, Tcl_NewStringObj(z, -1)); in tvfsOpen() 644 Tcl_ListObjAppendElement(0, pArg, Tcl_NewStringObj(z, -1)); in tvfsOpen() 649 Tcl_DecrRefCount(pArg); in tvfsOpen() 910 Tcl_Obj *pArg = Tcl_NewObj(); in tvfsShmMap() local 911 Tcl_IncrRefCount(pArg); in tvfsShmMap() [all …]
|
| H A D | test_quota.c | 87 void *pArg /* Client data */ 234 if( pGroup->xDestroy ) pGroup->xDestroy(pGroup->pArg); in quotaGroupDeref() 585 pGroup->pArg); in quotaWrite() 678 *(char**)pArg = sqlite3_mprintf("quota/%z", *(char**)pArg); in quotaFileControl() 845 void *pArg /* Client data */ in sqlite3_quota_set() argument 877 if( pGroup->xDestroy && pGroup->pArg!=pArg ){ in sqlite3_quota_set() 878 pGroup->xDestroy(pGroup->pArg); in sqlite3_quota_set() 880 pGroup->pArg = pArg; in sqlite3_quota_set() 1020 pGroup->pArg); in sqlite3_quota_fwrite() 1309 void *pArg /* Client data */ in tclQuotaCallback() argument [all …]
|
| H A D | test_multiplex.c | 919 static int multiplexFileControl(sqlite3_file *pConn, int op, void *pArg){ in multiplexFileControl() argument 928 if( pArg ) { in multiplexFileControl() 929 int bEnabled = *(int *)pArg; in multiplexFileControl() 935 if( pArg ) { in multiplexFileControl() 936 unsigned int szChunk = *(unsigned*)pArg; in multiplexFileControl() 957 char **aFcntl = (char**)pArg; in multiplexFileControl() 1045 rc = pSubOpen->pMethods->xFileControl(pSubOpen, op, pArg); in multiplexFileControl() 1047 *(char**)pArg = sqlite3_mprintf("multiplex/%z", *(char**)pArg); in multiplexFileControl() 1306 void *pArg = 0; in test_multiplex_control() local 1342 pArg = (void *)&iValue; in test_multiplex_control() [all …]
|
| H A D | test_vfstrace.c | 150 static int vfstraceFileControl(sqlite3_file*, int op, void *pArg); 455 static int vfstraceFileControl(sqlite3_file *pFile, int op, void *pArg){ in vfstraceFileControl() argument 468 *(sqlite3_int64*)pArg); in vfstraceFileControl() 473 sqlite3_snprintf(sizeof(zBuf), zBuf, "CHUNK_SIZE,%d", *(int*)pArg); in vfstraceFileControl() 486 const char *const* a = (const char*const*)pArg; in vfstraceFileControl() 499 rc = p->pReal->pMethods->xFileControl(p->pReal, op, pArg); in vfstraceFileControl() 502 *(char**)pArg = sqlite3_mprintf("vfstrace.%s/%z", in vfstraceFileControl() 503 pInfo->zVfsName, *(char**)pArg); in vfstraceFileControl() 506 && rc==SQLITE_OK && *(char**)pArg ){ in vfstraceFileControl() 508 pInfo->zVfsName, p->zFName, zOp, *(char**)pArg); in vfstraceFileControl()
|
| H A D | test_init.c | 113 static int wrPCacheInit(void *pArg){ in wrPCacheInit() argument 118 rc = wrapped.pcache.xInit(wrapped.pcache.pArg); in wrPCacheInit() 125 static void wrPCacheShutdown(void *pArg){ in wrPCacheShutdown() argument 126 wrapped.pcache.xShutdown(wrapped.pcache.pArg); in wrPCacheShutdown()
|
| H A D | test_syscall.c | 304 void *pArg; in ts_fcntl() local 309 pArg = va_arg(ap, void *); in ts_fcntl() 310 return orig_fcntl(fd, cmd, pArg); in ts_fcntl() 416 void *pArg; in ts_mremap() local 421 pArg = va_arg(ap, void *); in ts_mremap() 422 return orig_mremap(a, b, c, d, pArg); in ts_mremap()
|
| H A D | vtab.c | 542 Token *pArg = &pParse->sArg; in sqlite3VtabArgExtend() local 543 if( pArg->z==0 ){ in sqlite3VtabArgExtend() 544 pArg->z = p->z; in sqlite3VtabArgExtend() 545 pArg->n = p->n; in sqlite3VtabArgExtend() 547 assert(pArg->z <= p->z); in sqlite3VtabArgExtend() 548 pArg->n = (int)(&p->z[p->n] - pArg->z); in sqlite3VtabArgExtend() 1135 void *pArg = 0; in sqlite3VtabOverloadFunction() local 1168 rc = pMod->xFindFunction(pVtab, nArg, pDef->zName, &xSFunc, &pArg); in sqlite3VtabOverloadFunction() 1184 pNew->pUserData = pArg; in sqlite3VtabOverloadFunction()
|
| H A D | test_bestindex.c | 282 Tcl_Obj *pArg; in tclFilter() local 296 pArg = Tcl_NewObj(); in tclFilter() 297 Tcl_IncrRefCount(pArg); in tclFilter() 320 Tcl_ListObjAppendElement(interp, pArg, pVal); in tclFilter() 322 Tcl_ListObjAppendElement(interp, pScript, pArg); in tclFilter() 323 Tcl_DecrRefCount(pArg); in tclFilter()
|
| H A D | notify.c | 151 void *pArg in sqlite3_unlock_notify() argument 169 xNotify(&pArg, 1); in sqlite3_unlock_notify() 179 db->pUnlockArg = pArg; in sqlite3_unlock_notify()
|
| H A D | test_pcache.c | 53 static int testpcacheInit(void *pArg){ in testpcacheInit() argument 54 assert( pArg==(void*)&testpcacheGlobal ); in testpcacheInit() 67 static void testpcacheShutdown(void *pArg){ in testpcacheShutdown() argument 68 assert( pArg==(void*)&testpcacheGlobal ); in testpcacheShutdown()
|
| H A D | os_unix.c | 3943 if( *pArg<0 ){ in unixModeBit() 3945 }else if( (*pArg)==0 ){ in unixModeBit() 3980 *(int*)pArg = pFile->eFileLock; in unixFileControl() 3984 *(int*)pArg = pFile->lastErrno; in unixFileControl() 3988 pFile->szChunk = *(int *)pArg; in unixFileControl() 4014 *(char**)pArg = zTFile; in unixFileControl() 4026 *(int*)pArg = iOld; in unixFileControl() 4032 i64 newLimit = *(i64*)pArg; in unixFileControl() 4078 *(int*)pArg = 0; in unixFileControl() 7770 *(const char **)pArg = NULL; in proxyFileControl() [all …]
|
| H A D | os.c | 129 int sqlite3OsFileControl(sqlite3_file *id, int op, void *pArg){ in sqlite3OsFileControl() argument 155 return id->pMethods->xFileControl(id, op, pArg); in sqlite3OsFileControl() 157 void sqlite3OsFileControlHint(sqlite3_file *id, int op, void *pArg){ in sqlite3OsFileControlHint() argument 158 if( id->pMethods ) (void)id->pMethods->xFileControl(id, op, pArg); in sqlite3OsFileControlHint()
|
| H A D | test_quota.h | 123 void *pArg /* Client data */ 125 void *pArg, /* client data passed thru to callback */
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_vtab.c | 963 sqlite3_value *pArg = argv[3+i]; in lsm1Update() local 964 u8 eType = sqlite3_value_type(pArg); in lsm1Update() 971 sqlite3_int64 v = sqlite3_value_int64(pArg); in lsm1Update() 982 double r = sqlite3_value_double(pArg); in lsm1Update() 988 int n = sqlite3_value_bytes(pArg); in lsm1Update() 990 lsm1VblobAppend(&val, sqlite3_value_blob(pArg), n); in lsm1Update() 994 int n = sqlite3_value_bytes(pArg); in lsm1Update() 996 lsm1VblobAppend(&val, sqlite3_value_text(pArg), n); in lsm1Update()
|
| /sqlite-3.40.0/ext/rbu/ |
| H A D | sqlite3rbu.h | 570 void *pArg, 571 int (*xRename)(void *pArg, const char *zOld, const char *zNew)
|