diff options
Diffstat (limited to '')
-rw-r--r-- | module/hnh/module-introspection/module-uses.scm | 2 | ||||
-rw-r--r-- | module/hnh/util.scm | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/module/hnh/module-introspection/module-uses.scm b/module/hnh/module-introspection/module-uses.scm index b82aa6d0..3bed2a5e 100644 --- a/module/hnh/module-introspection/module-uses.scm +++ b/module/hnh/module-introspection/module-uses.scm @@ -82,6 +82,8 @@ (_ '()))) ;; find all use-modules forms, and return what they pull in +;; NOTE this will pull in all forms looking like a (use-modules ...) +;; form, even if they are quoted, or in a cond-expand (define (module-use-module-uses forms) (match forms (('use-modules modules ...) diff --git a/module/hnh/util.scm b/module/hnh/util.scm index ba2a8a59..759cdd48 100644 --- a/module/hnh/util.scm +++ b/module/hnh/util.scm @@ -70,6 +70,10 @@ :replace (set! define-syntax when unless)) +(cond-expand + (guile-3 (use-modules ((ice-9 copy-tree) :select (copy-tree)))) + (else)) + ((@ (guile) define-syntax) define-syntax (syntax-rules () ((_ (name args ...) body ...) |