Lines Matching refs:argv

93   char **argv            /* Text of each argument */  in sqlite_test_open()  argument
99 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_test_open()
103 db = sqlite_open(argv[1], 0666, &zErr); in sqlite_test_open()
117 static int exec_printf_cb(void *pArg, int argc, char **argv, char **name){ in exec_printf_cb() argument
127 Tcl_DStringAppendElement(str, argv[i] ? argv[i] : "NULL"); in exec_printf_cb()
143 char **argv /* Text of each argument */ in test_exec_printf() argument
151 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_exec_printf()
155 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_exec_printf()
157 rc = sqlite_exec_printf(db, argv[2], exec_printf_cb, &str, &zErr, argv[3]); in test_exec_printf()
177 char **argv /* Text of each argument */ in test_mprintf_z() argument
183 zResult = sqliteMPrintf("%z%s%s", zResult, argv[1], argv[i]); in test_mprintf_z()
201 char **argv /* Text of each argument */ in test_get_table_printf() argument
212 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_get_table_printf()
216 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_get_table_printf()
218 rc = sqlite_get_table_printf(db, argv[2], &aResult, &nRow, &nCol, in test_get_table_printf()
219 &zErr, argv[3]); in test_get_table_printf()
248 char **argv /* Text of each argument */ in test_last_rowid() argument
254 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " DB\"", 0); in test_last_rowid()
257 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_last_rowid()
272 char **argv /* Text of each argument */ in sqlite_test_close() argument
276 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_test_close()
280 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in sqlite_test_close()
289 static void ifnullFunc(sqlite_func *context, int argc, const char **argv){ in ifnullFunc() argument
292 if( argv[i] ){ in ifnullFunc()
293 sqlite_set_result_string(context, argv[i], -1); in ifnullFunc()
334 static int execFuncCallback(void *pData, int argc, char **argv, char **NotUsed){ in execFuncCallback() argument
338 if( argv[i]==0 ){ in execFuncCallback()
341 dstrAppend(p, argv[i], ' '); in execFuncCallback()
358 static void sqliteExecFunc(sqlite_func *context, int argc, const char **argv){ in sqliteExecFunc() argument
361 sqlite_exec((sqlite*)sqlite_user_data(context), argv[0], in sqliteExecFunc()
386 char **argv /* Text of each argument */ in test_create_function() argument
391 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_create_function()
395 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_create_function()
408 static void countStep(sqlite_func *context, int argc, const char **argv){ in countStep() argument
411 if( (argc==0 || argv[0]) && p ){ in countStep()
436 char **argv /* Text of each argument */ in test_create_aggregate() argument
440 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_create_aggregate()
444 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_create_aggregate()
461 char **argv /* Text of each argument */ in sqlite_mprintf_int() argument
466 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_mprintf_int()
471 if( Tcl_GetInt(interp, argv[i], &a[i-2]) ) return TCL_ERROR; in sqlite_mprintf_int()
473 z = sqlite_mprintf(argv[1], a[0], a[1], a[2]); in sqlite_mprintf_int()
488 char **argv /* Text of each argument */ in sqlite_mprintf_str() argument
493 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_mprintf_str()
498 if( Tcl_GetInt(interp, argv[i], &a[i-2]) ) return TCL_ERROR; in sqlite_mprintf_str()
500 z = sqlite_mprintf(argv[1], a[0], a[1], argc>4 ? argv[4] : NULL); in sqlite_mprintf_str()
515 char **argv /* Text of each argument */ in sqlite_mprintf_double() argument
521 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_mprintf_double()
526 if( Tcl_GetInt(interp, argv[i], &a[i-2]) ) return TCL_ERROR; in sqlite_mprintf_double()
528 if( Tcl_GetDouble(interp, argv[4], &r) ) return TCL_ERROR; in sqlite_mprintf_double()
529 z = sqlite_mprintf(argv[1], a[0], a[1], r); in sqlite_mprintf_double()
546 char **argv /* Text of each argument */ in sqlite_mprintf_scaled() argument
552 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_mprintf_scaled()
557 if( Tcl_GetDouble(interp, argv[i], &r[i-2]) ) return TCL_ERROR; in sqlite_mprintf_scaled()
559 z = sqlite_mprintf(argv[1], r[0]*r[1]); in sqlite_mprintf_scaled()
576 char **argv /* Text of each argument */ in sqlite_malloc_fail() argument
580 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " N\"", 0); in sqlite_malloc_fail()
583 if( Tcl_GetInt(interp, argv[1], &n) ) return TCL_ERROR; in sqlite_malloc_fail()
600 char **argv /* Text of each argument */ in sqlite_malloc_stat() argument
620 char **argv /* Text of each argument */ in sqlite_abort() argument
630 static void testFunc(sqlite_func *context, int argc, const char **argv){ in testFunc() argument
632 if( argv[0]==0 ){ in testFunc()
635 }else if( sqliteStrICmp(argv[0],"string")==0 ){ in testFunc()
636 sqlite_set_result_string(context, argv[1], -1); in testFunc()
637 }else if( argv[1]==0 ){ in testFunc()
640 }else if( sqliteStrICmp(argv[0],"int")==0 ){ in testFunc()
641 sqlite_set_result_int(context, atoi(argv[1])); in testFunc()
642 }else if( sqliteStrICmp(argv[0],"double")==0 ){ in testFunc()
643 sqlite_set_result_double(context, sqliteAtoF(argv[1], 0)); in testFunc()
649 argv += 2; in testFunc()
662 char **argv /* Text of each argument */ in test_register_func() argument
667 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_register_func()
671 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_register_func()
672 rc = sqlite_create_function(db, argv[2], -1, testFunc, 0); in test_register_func()
688 static int rememberDataTypes(void *pArg, int nCol, char **argv, char **colv){ in rememberDataTypes() argument
715 char **argv /* Text of each argument */ in sqlite_datatypes() argument
720 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in sqlite_datatypes()
724 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in sqlite_datatypes()
725 rc = sqlite_exec(db, argv[2], rememberDataTypes, interp, 0); in sqlite_datatypes()
744 char **argv /* Text of each argument */ in test_compile() argument
753 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_compile()
757 if( getDbPointer(interp, argv[1], &db) ) return TCL_ERROR; in test_compile()
758 rc = sqlite_compile(db, argv[2], argc==4 ? &zTail : 0, &vm, &zErr); in test_compile()
759 if( argc==4 ) Tcl_SetVar(interp, argv[3], zTail, 0); in test_compile()
784 char **argv /* Text of each argument */ in test_step() argument
794 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_step()
798 if( getVmPointer(interp, argv[1], &vm) ) return TCL_ERROR; in test_step()
802 Tcl_SetVar(interp, argv[2], zBuf, 0); in test_step()
805 Tcl_SetVar(interp, argv[3], "", 0); in test_step()
808 Tcl_SetVar(interp, argv[3], azValue[i] ? azValue[i] : "", in test_step()
814 Tcl_SetVar(interp, argv[4], "", 0); in test_step()
817 Tcl_SetVar(interp, argv[4], azColName[i] ? azColName[i] : "", in test_step()
843 char **argv /* Text of each argument */ in test_finalize() argument
849 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_finalize()
853 if( getVmPointer(interp, argv[1], &vm) ) return TCL_ERROR; in test_finalize()
874 char **argv /* Text of each argument */ in test_reset() argument
880 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_reset()
884 if( getVmPointer(interp, argv[1], &vm) ) return TCL_ERROR; in test_reset()
916 char **argv /* Text of each argument */ in test_bind() argument
922 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], in test_bind()
926 if( getVmPointer(interp, argv[1], &vm) ) return TCL_ERROR; in test_bind()
927 if( Tcl_GetInt(interp, argv[2], &idx) ) return TCL_ERROR; in test_bind()
928 if( strcmp(argv[4],"null")==0 ){ in test_bind()
930 }else if( strcmp(argv[4],"static")==0 ){ in test_bind()
932 }else if( strcmp(argv[4],"normal")==0 ){ in test_bind()
933 rc = sqlite_bind(vm, idx, argv[3], -1, 1); in test_bind()
965 char **argv /* Text of each argument */ in test_breakpoint() argument