From fe98b3bb29a37de1ef4c8c9c7c657f9ca4075294 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sat, 14 Jan 2023 12:05:24 +0800 Subject: [PATCH] [html.scm] use load-and-reexport macro --- gnucash/html/html.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gnucash/html/html.scm b/gnucash/html/html.scm index 5d6d2a81a4..0083e441a1 100644 --- a/gnucash/html/html.scm +++ b/gnucash/html/html.scm @@ -26,14 +26,13 @@ (define-module (gnucash html)) +(use-modules (gnucash core-utils)) + ;; Guile 2 needs to find the symbols from the extension at compile time already (eval-when (compile load eval expand) (load-extension "libgnc-html" "scm_init_sw_gnc_html_module")) -(use-modules (sw_gnc_html)) -; Export the swig-wrapped symbols in the public interface of this module -(let ((i (module-public-interface (current-module)))) - (module-use! i (resolve-interface '(sw_gnc_html)))) +(load-and-reexport (sw_gnc_html)) (gnc-html-initialize)