From 04f10d66fa3d6ea838fe51860608e99dd9519235 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sat, 5 Oct 2019 17:54:44 +0200 Subject: [PATCH] engine cosmetics - remove a few references to guile that are no longer relevant --- libgnucash/engine/engine-helpers.c | 4 ++-- libgnucash/engine/engine-helpers.h | 4 ++-- libgnucash/engine/test/test-business.c | 7 +++---- libgnucash/engine/test/test-customer.c | 2 +- libgnucash/engine/test/test-employee.c | 2 +- libgnucash/engine/test/test-transaction-reversal.cpp | 1 - libgnucash/engine/test/test-transaction-voiding.cpp | 1 - 7 files changed, 9 insertions(+), 12 deletions(-) diff --git a/libgnucash/engine/engine-helpers.c b/libgnucash/engine/engine-helpers.c index 24bb5f0770..e92f554592 100644 --- a/libgnucash/engine/engine-helpers.c +++ b/libgnucash/engine/engine-helpers.c @@ -103,8 +103,8 @@ gnc_get_action_num (const Transaction *trans, const Split *split) * sets split-action and, if 'tran' and 'action' are provided, 'action' * sets transaction-num; if book option is FALSE (tran-num is to be used for NUM) * then 'num' sets transaction-num and, if 'split' and 'action' are - * provided, 'action' sets 'split-action'. If any arguments are NULL (#f, for - * the guile version), no change is made to the field that would otherwise be + * provided, 'action' sets 'split-action'. If any arguments are NULL, + * no change is made to the field that would otherwise be * affected. If 'tran' and 'num' are passed with 'split and 'action' set to * NULL, it is xaccTransSetNum (trans, num). Likewise, if 'split and 'action' * are passed with 'tran' and 'num' set to NULL, it is xaccSplitSetAction (split, diff --git a/libgnucash/engine/engine-helpers.h b/libgnucash/engine/engine-helpers.h index 6fc38a307d..4b3abe6ee8 100644 --- a/libgnucash/engine/engine-helpers.h +++ b/libgnucash/engine/engine-helpers.h @@ -56,8 +56,8 @@ const char * gnc_get_action_num (const Transaction *trans, const Split *split); * sets split-action and, if 'tran' and 'action' are provided, 'action' * sets transaction-num; if book option is FALSE (tran-num is to be used for NUM) * then 'num' sets transaction-num and, if 'split' and 'action' are - * provided, 'action' sets 'split-action'. If any arguments are NULL (#f, for - * the guile version), no change is made to the field that would otherwise be + * provided, 'action' sets 'split-action'. If any arguments are NULL, + * no change is made to the field that would otherwise be * affected. If 'tran' and 'num' are passed with 'split and 'action' set to * NULL, it is xaccTransSetNum (trans, num). Likewise, if 'split and 'action' * are passed with 'tran' and 'num' set to NULL, it is xaccSplitSetAction (split, diff --git a/libgnucash/engine/test/test-business.c b/libgnucash/engine/test/test-business.c index dfec918ca8..d2cd08d21a 100644 --- a/libgnucash/engine/test/test-business.c +++ b/libgnucash/engine/test/test-business.c @@ -25,7 +25,6 @@ #include #include -#include #include "qof.h" #include "gnc-module.h" @@ -121,9 +120,9 @@ test_printable (const char *name, gpointer obj) } static void -main_helper (void *closure, int argc, char **argv) +main_helper (int argc, char **argv) { - gnc_module_load("gnucash/engine", 0); + gnc_engine_init(argc, argv); test_business(); print_test_results(); exit(get_rv()); @@ -134,6 +133,6 @@ int main (int argc, char **argv) { g_setenv ("GNC_UNINSTALLED", "1", TRUE); - // scm_boot_guile (argc, argv, main_helper, NULL); + //main_helper (argc, argv); return get_rv(); } diff --git a/libgnucash/engine/test/test-customer.c b/libgnucash/engine/test/test-customer.c index fd84729188..7856798ef9 100644 --- a/libgnucash/engine/test/test-customer.c +++ b/libgnucash/engine/test/test-customer.c @@ -1,6 +1,6 @@ /********************************************************************* * test-customer.c - * Test the customer object (without Guile/Scheme) + * Test the customer object * * Copyright (c) 2001 Derek Atkins * Copyright (c) 2005 Neil Williams diff --git a/libgnucash/engine/test/test-employee.c b/libgnucash/engine/test/test-employee.c index 3f3fdb3a7a..e7f476da3e 100644 --- a/libgnucash/engine/test/test-employee.c +++ b/libgnucash/engine/test/test-employee.c @@ -1,6 +1,6 @@ /********************************************************************* * test-employee.c - * Test the employee object (without Guile). + * Test the employee object. * * Copyright (c) 2001 Derek Atkins * Copyright (c) 2005 Neil Williams diff --git a/libgnucash/engine/test/test-transaction-reversal.cpp b/libgnucash/engine/test/test-transaction-reversal.cpp index 94f01ce562..c8e918e4f6 100644 --- a/libgnucash/engine/test/test-transaction-reversal.cpp +++ b/libgnucash/engine/test/test-transaction-reversal.cpp @@ -1,7 +1,6 @@ /*************************************************************************** * test-transaction-reversal.c * - * Modified to run without Guile: Mon Aug 22 11:19:56 2005 * Copyright 2005 Neil Williams * linux@codehelp.co.uk ****************************************************************************/ diff --git a/libgnucash/engine/test/test-transaction-voiding.cpp b/libgnucash/engine/test/test-transaction-voiding.cpp index fcc86e166c..f6037d1783 100644 --- a/libgnucash/engine/test/test-transaction-voiding.cpp +++ b/libgnucash/engine/test/test-transaction-voiding.cpp @@ -1,7 +1,6 @@ /*************************************************************************** * test-transaction-voiding.c * - * Modified to run without Guile: Mon Aug 22 11:24:44 2005 * Copyright 2005 Neil Williams * linux@codehelp.co.uk ****************************************************************************/