2001-08-07 18:29:04 -05:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;; gnc-module.scm
|
|
|
|
;;; Guile module which allows initialization of the gnucash module
|
|
|
|
;;; system from Scheme
|
|
|
|
;;;
|
|
|
|
;;; Copyright 2001 Linux Developers Group
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2015-09-29 14:08:48 -05:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; This program 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 2 of
|
|
|
|
;; the License, or (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program 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 this program; if not, contact:
|
|
|
|
;;
|
|
|
|
;; Free Software Foundation Voice: +1-617-542-5942
|
|
|
|
;; 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
|
|
|
|
;; Boston, MA 02110-1301, USA gnu@gnu.org
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2001-08-07 18:29:04 -05:00
|
|
|
|
|
|
|
(define-module (gnucash gnc-module))
|
2012-12-18 05:33:58 -06:00
|
|
|
|
|
|
|
;; Guile 2 needs to find the symbols from the extension at compile time already
|
2017-12-19 16:13:01 -06:00
|
|
|
(eval-when
|
2013-11-29 13:18:08 -06:00
|
|
|
(compile load eval expand)
|
2017-12-19 16:13:01 -06:00
|
|
|
(load-extension "libgnc-module" "scm_init_sw_gnc_module_module"))
|
2012-12-18 05:33:58 -06:00
|
|
|
|
2006-10-15 14:02:05 -05:00
|
|
|
(use-modules (sw_gnc_module))
|
2001-08-07 18:29:04 -05:00
|
|
|
|
2006-10-15 14:02:05 -05:00
|
|
|
(define gnc:module-system-init gnc-module-system-init)
|
|
|
|
(define gnc:module-system-refresh gnc-module-system-refresh)
|
|
|
|
(define gnc:module-load gnc-module-load)
|
|
|
|
(define gnc:module-load-optional gnc-module-load-optional)
|
|
|
|
(define gnc:module-unload gnc-module-unload)
|
2004-06-26 09:52:12 -05:00
|
|
|
|
2006-10-15 14:02:05 -05:00
|
|
|
(export gnc:module-system-init)
|
|
|
|
(export gnc:module-system-refresh)
|
|
|
|
(export gnc:module-load)
|
|
|
|
(export gnc:module-load-optional)
|
|
|
|
(export gnc:module-unload)
|
2015-11-08 16:43:58 -06:00
|
|
|
(export gnc:module-begin-syntax)
|
|
|
|
|
|
|
|
;; Guile 2 needs to load external modules at compile time
|
2017-12-19 16:13:01 -06:00
|
|
|
(define-syntax-rule (gnc:module-begin-syntax form ...)
|
|
|
|
(eval-when (load compile eval expand) (begin form ...)))
|