2006-10-15 14:02:05 -05:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;; core-utils.scm
|
|
|
|
;;; Guile module for core-utils
|
|
|
|
;;;
|
|
|
|
;;; Copyright 2006 Chris Shoemaker <c.shoemaker@cox.net>
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
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
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2006-10-15 14:02:05 -05:00
|
|
|
|
|
|
|
(define-module (gnucash core-utils))
|
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)
|
2019-10-01 05:51:38 -05:00
|
|
|
(load-extension "libgnucash-guile" "gnc_guile_bindings_init"))
|
2006-10-15 14:02:05 -05:00
|
|
|
(use-modules (sw_core_utils))
|
|
|
|
|
2019-10-05 09:01:44 -05:00
|
|
|
; 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_core_utils))))
|
2013-12-08 12:02:25 -06:00
|
|
|
|
|
|
|
(define-public gnc:version (gnc-version))
|
2019-11-10 11:15:34 -06:00
|
|
|
;; gettext functions
|
|
|
|
(define-public _ gettext)
|
|
|
|
(define-syntax N_
|
|
|
|
(syntax-rules ()
|
|
|
|
((_ x) x)))
|
|
|
|
(export N_)
|