Lines Matching defs:context

2030   sqlite3_context *context,
2043 sqlite3_result_error(context, "SHA3 size should be one of: 224 256 "
2055 sqlite3_result_blob(context, SHA3Final(&cx), iSize/8, SQLITE_TRANSIENT);
2062 SHA3Context *p, /* Add content to this context */
2109 sqlite3_context *context,
2113 sqlite3 *db = sqlite3_context_db_handle(context);
2129 sqlite3_result_error(context, "SHA3 size should be one of: 224 256 "
2142 sqlite3_result_error(context, zMsg, -1);
2149 sqlite3_result_error(context, zMsg, -1);
2217 sqlite3_result_blob(context, SHA3Final(&cx), iSize/8, SQLITE_TRANSIENT);
2588 sqlite3_context *context,
2592 Decimal *p = decimal_new(context, argv[0], 0, 0);
2594 decimal_result(context, p);
2640 sqlite3_context *context,
2648 pA = decimal_new(context, argv[0], 0, 0);
2650 pB = decimal_new(context, argv[1], 0, 0);
2655 sqlite3_result_int(context, rc);
2791 sqlite3_context *context,
2795 Decimal *pA = decimal_new(context, argv[0], 0, 0);
2796 Decimal *pB = decimal_new(context, argv[1], 0, 0);
2799 decimal_result(context, pA);
2804 sqlite3_context *context,
2808 Decimal *pA = decimal_new(context, argv[0], 0, 0);
2809 Decimal *pB = decimal_new(context, argv[1], 0, 0);
2814 decimal_result(context, pA);
2826 sqlite3_context *context,
2833 p = sqlite3_aggregate_context(context, sizeof(*p));
2847 pArg = decimal_new(context, argv[0], 0, 0);
2852 sqlite3_context *context,
2859 p = sqlite3_aggregate_context(context, sizeof(*p));
2862 pArg = decimal_new(context, argv[0], 0, 0);
2867 static void decimalSumValue(sqlite3_context *context){
2868 Decimal *p = sqlite3_aggregate_context(context, 0);
2870 decimal_result(context, p);
2872 static void decimalSumFinalize(sqlite3_context *context){
2873 Decimal *p = sqlite3_aggregate_context(context, 0);
2875 decimal_result(context, p);
2890 sqlite3_context *context,
2894 Decimal *pA = decimal_new(context, argv[0], 0, 0);
2895 Decimal *pB = decimal_new(context, argv[1], 0, 0);
2907 sqlite3_result_error_nomem(context);
2935 decimal_result(context, pA);
3090 sqlite3_context *context,
3138 switch( *(int*)sqlite3_user_data(context) ){
3142 sqlite3_result_text(context, zResult, -1, SQLITE_TRANSIENT);
3145 sqlite3_result_int64(context, m);
3148 sqlite3_result_int(context, e-1075);
3170 sqlite3_result_double(context, 0.0);
3197 sqlite3_result_double(context, r);
3205 sqlite3_context *context,
3221 sqlite3_result_double(context, r);
3225 sqlite3_context *context,
3242 sqlite3_result_blob(context, a, sizeof(r), SQLITE_TRANSIENT);
4495 sqlite3_context *context,
4506 pRe = sqlite3_get_auxdata(context, 0);
4510 zErr = re_compile(&pRe, zPattern, sqlite3_user_data(context)!=0);
4513 sqlite3_result_error(context, zErr, -1);
4517 sqlite3_result_error_nomem(context);
4524 sqlite3_result_int(context, re_match(pRe, zStr, -1));
4527 sqlite3_set_auxdata(context, 0, pRe, (void(*)(void*))re_free);
4540 sqlite3_context *context,
4554 zErr = re_compile(&pRe, zPattern, sqlite3_user_data(context)!=0);
4557 sqlite3_result_error(context, zErr, -1);
4561 sqlite3_result_error_nomem(context);
4582 sqlite3_result_text(context, z, n-1, sqlite3_free);
4757 ** Set the result stored by context ctx to a blob containing the
4810 sqlite3_context *context,
4818 readFileContents(context, zName);
4822 ** Set the error message contained in context ctx to the results of
5109 sqlite3_context *context,
5119 sqlite3_result_error(context,
5134 res = writeFile(context, zFile, argv[1], mode, mtime);
5137 res = writeFile(context, zFile, argv[1], mode, mtime);
5143 ctxErrorMsg(context, "failed to create symlink: %s", zFile);
5145 ctxErrorMsg(context, "failed to create directory: %s", zFile);
5147 ctxErrorMsg(context, "failed to write file: %s", zFile);
5159 sqlite3_context *context,
5184 sqlite3_result_text(context, z, -1, SQLITE_TRANSIENT);
5686 ** the complete input line, used for context.
7146 ** Set the error message contained in context ctx to the results of
7781 ** return value in context pCtx to the result (a blob).
8687 sqlite3_context *context,
8692 ZipfileTab *pTab = (ZipfileTab*)sqlite3_user_data(context);
8726 sqlite3_result_error_nomem(context);
8728 sqlite3_result_text(context, zRes, -1, SQLITE_TRANSIENT);
8790 ZipfileCtx *p; /* Aggregate function context */
9096 sqlite3_context *context,
9109 sqlite3_result_error_nomem(context);
9113 sqlite3_result_error(context, "error in compress()", -1);
9115 sqlite3_result_blob(context, pOut, nOut, SQLITE_TRANSIENT);
9117 sqlite3_result_value(context, argv[0]);
9122 sqlite3_result_value(context, argv[0]);
9137 sqlite3_context *context,
9148 sqlite3_result_value(context, argv[0]);
9153 sqlite3_result_error(context, "error in uncompress()", -1);
9155 sqlite3_result_blob(context, pOut, sz, SQLITE_TRANSIENT);
11839 ** result of context object pCtx.
12809 void *pSqlCtx; /* SQL callback context */
13231 sqlite3_context *context,
13250 sqlite3_result_int64(context, iVal);
13371 sqlite3_context *context,
13403 sqlite3_result_error_nomem(context);
13438 sqlite3_result_text(context, zOut, iOut, SQLITE_TRANSIENT);
13444 sqlite3_result_value(context, argv[0]);
15792 sqlite3_context *context,
15814 sqlite3_result_error(context, "no editor for edit()", -1);
15818 sqlite3_result_error(context, "NULL input to edit()", -1);
15821 db = sqlite3_context_db_handle(context);
15829 sqlite3_result_error_nomem(context);
15838 sqlite3_result_error(context, "edit() cannot open temp file", -1);
15853 sqlite3_result_error(context, "edit() could not write the whole file", -1);
15858 sqlite3_result_error_nomem(context);
15864 sqlite3_result_error(context, "EDITOR returned non-zero", -1);
15869 sqlite3_result_error(context,
15878 sqlite3_result_error_nomem(context);
15885 sqlite3_result_error(context, "could not read back the whole file", -1);
15889 sqlite3_result_blob64(context, p, sz, sqlite3_free);
15904 sqlite3_result_text64(context, (const char*)p, sz,
17095 ShellState *p, /* Query context */
17204 ShellState *p, /* The shell context */
19312 sqlite3_context *context,
19331 sqlite3_result_int64(context, iVal);
19340 sqlite3_context *context,
19348 sqlite3_result_text(context, z, -1, sqlite3_free);
19356 sqlite3_context *context,
19363 sqlite3_result_int(context, sleep);
19380 sqlite3_context *context,
19413 sqlite3_result_error_nomem(context);
19448 sqlite3_result_text(context, zOut, iOut, SQLITE_TRANSIENT);
19454 sqlite3_result_value(context, argv[0]);
22796 ImportCtx sCtx; /* Reader context */