-
Notifications
You must be signed in to change notification settings - Fork 1
/
libarchive.scm
29 lines (21 loc) · 915 Bytes
/
libarchive.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
;; -*- mode: Scheme; tab-width: 4 -*-
(eval-when (expand load eval)
(read-set! keywords 'postfix))
;; this hack of doing define-module twice is because define-module*
;; processes the duplicates: keyword too late, after doing re-exports.
;; this causes failures in the event that generics need to be merged
;; for a re-exported symbol.
(define-module (libarchive)
use-module: (oop goops)
duplicates: (merge-generics replace warn-override-core warn last))
(define-module (libarchive)
use-module: (libarchive base)
use-module: (libarchive reader)
use-module: (libarchive writer)
use-module: (libarchive entry)
re-export-and-replace: (close)
re-export: (open-filename))
(module-use-interfaces! (module-public-interface (current-module))
(list (resolve-interface '(libarchive reader))
(resolve-interface '(libarchive writer))
(resolve-interface '(libarchive entry))))