mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-29 12:14:31 -06:00
8d24252860
This is in preparation of the final guile restructuring step: install gnucash scm files directly in guile's default site module directory. Internalizing json is done to prevent an install clash with a potentially system installed guile-json module.
42 lines
1.3 KiB
Scheme
42 lines
1.3 KiB
Scheme
;;; (json) --- Guile JSON implementation.
|
|
|
|
;; Copyright (C) 2013-2018 Aleix Conchillo Flaque <aconchillo@gmail.com>
|
|
;;
|
|
;; This file is part of guile-json.
|
|
;;
|
|
;; guile-json 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 of the License, or
|
|
;; (at your option) any later version.
|
|
;;
|
|
;; guile-json 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 guile-json. If not, see https://www.gnu.org/licenses/.
|
|
|
|
;;; Commentary:
|
|
|
|
;; JSON module for Guile
|
|
|
|
;;; Code:
|
|
|
|
(define-module (gnucash json)
|
|
#:use-module (gnucash json builder)
|
|
#:use-module (gnucash json parser))
|
|
|
|
(define-syntax re-export-modules
|
|
(syntax-rules ()
|
|
((_ (mod ...) ...)
|
|
(begin
|
|
(module-use! (module-public-interface (current-module))
|
|
(resolve-interface '(mod ...)))
|
|
...))))
|
|
|
|
(re-export-modules (gnucash json builder)
|
|
(gnucash json parser))
|
|
|
|
;;; (json) ends here
|