quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 079e6b65cb200c0d1e31babfabbc36892af2300b
parent 7c4f67b9357fbf66ba1f55a3990d8da036b97fa5
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 24 Apr 2025 08:57:23 +0200

cleanup, less logging

Diffstat:
Mquickjs/quickjs-libc.c | 4++--
Mtaler_wallet_core_lib.c | 4++--
Mtart_module.c | 2+-
Mxcode/FTalerWalletcore.h | 18+++++-------------
Mxcode/FTalerWalletcore.m | 18+++++-------------
5 files changed, 15 insertions(+), 31 deletions(-)

diff --git a/quickjs/quickjs-libc.c b/quickjs/quickjs-libc.c @@ -2226,7 +2226,7 @@ static void js_free_http_message(JSHttpMessage *msg) static void handle_http_resp(void *cls, struct JSHttpResponseInfo *resp_info) { - printf("received response for request %i from native client\n", resp_info->request_id); +// printf("received response for request %i from native client\n", resp_info->request_id); // Called from a different thread. // We must enqueue something that the message loop will process @@ -2299,7 +2299,7 @@ static void handle_http_resp(void *cls, struct JSHttpResponseInfo *resp_info) } list_add_tail(&msg->link, &hp->msg_queue); pthread_mutex_unlock(&hp->mutex); - printf("finished handling http response for request %i\n", resp_info->request_id); +// printf("finished handling http response for request %i\n", resp_info->request_id); return; fail: printf("error handling http response for request %i\n", resp_info->request_id); diff --git a/taler_wallet_core_lib.c b/taler_wallet_core_lib.c @@ -215,10 +215,10 @@ run(void *cls) JS_NewCFunctionData(wh->ctx, js_native_log, 3, 0, 1, &data)); } - fprintf(stderr, "qtart: loading JS code\n"); +// fprintf(stderr, "qtart: loading JS code\n"); js_std_eval_binary(wh->ctx, qjsc_prelude, qjsc_prelude_size, 0); js_std_eval_binary(wh->ctx, qjsc_wallet_core, qjsc_wallet_core_size, 0); - fprintf(stderr, "qtart: done loading JS code\n"); +// fprintf(stderr, "qtart: loaded JS code\n"); js_os_set_host_message_handler(wh->ctx, wallet_host_message_handler, wh); diff --git a/tart_module.c b/tart_module.c @@ -1612,7 +1612,7 @@ static JSValue js_sqlite3_open(JSContext *ctx, JSValue this_val, goto done; } - fprintf(stderr, "opening sqlite3 db at %s\n", filename), +// fprintf(stderr, "opening sqlite3 db at %s\n", filename), ret = sqlite3_open_v2(filename, &sqlite3_db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL); if (SQLITE_OK != ret) { if (NULL == sqlite3_db) { diff --git a/xcode/FTalerWalletcore.h b/xcode/FTalerWalletcore.h @@ -1,17 +1,9 @@ /* - * This file is part of GNU Taler - * (C) 2021 Taler Systems S.A. - * - * GNU Taler is free software; you can redistribute it and/or modify it under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 3, or (at your option) any later version. - * - * GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - * A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * See LICENSE.md + */ +/** + * @author Marc Stibane */ #import <Foundation/Foundation.h> diff --git a/xcode/FTalerWalletcore.m b/xcode/FTalerWalletcore.m @@ -1,17 +1,9 @@ /* - * This file is part of GNU Taler - * (C) 2021 Taler Systems S.A. - * - * GNU Taler is free software; you can redistribute it and/or modify it under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 3, or (at your option) any later version. - * - * GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - * A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * See LICENSE.md + */ +/** + * @author Marc Stibane */ #import "FTalerWalletcore.h"