unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] Ignore the SRFI name component(s) in R6RS imports
@ 2010-06-19 12:20 Andreas Rottmann
  0 siblings, 0 replies; only message in thread
From: Andreas Rottmann @ 2010-06-19 12:20 UTC (permalink / raw)
  To: Guile Development

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: ignore-r6rs-srfi-names.diff --]
[-- Type: text/x-diff, Size: 1408 bytes --]

From: Andreas Rottmann <a.rottmann@gmx.at>
Subject: Ignore the SRFI name component(s) in R6RS imports

* module/ice-9/r6rs-libraries.scm (resolve-r6rs-interface): To avoid having to
  create alias libraries for all the SRFIs, we simply ignore the name
  components, so (srfi :n foo bar) will resolve to (srfi :n).


---
 module/ice-9/r6rs-libraries.scm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/ice-9/r6rs-libraries.scm b/module/ice-9/r6rs-libraries.scm
index 482f826..6fcde27 100644
--- a/module/ice-9/r6rs-libraries.scm
+++ b/module/ice-9/r6rs-libraries.scm
@@ -29,7 +29,7 @@
   (define (sym? x) (symbol? (syntax->datum x)))
 
   (syntax-case import-spec (library only except prefix rename srfi)
-    ;; (srfi :n ...) -> (srfi srfi-n ...)
+    ;; (srfi :n ...) -> (srfi srfi-n)
     ((library (srfi colon-n rest ... (version ...)))
      (and (and-map sym? #'(srfi rest ...))
           (symbol? (syntax->datum #'colon-n))
@@ -40,7 +40,7 @@
                      (substring (symbol->string (syntax->datum #'colon-n))
                                 1)))))
        (resolve-r6rs-interface
-        #`(library (srfi #,srfi-n rest ... (version ...))))))
+        #`(library (srfi #,srfi-n (version ...))))))
     
     ((library (name name* ... (version ...)))
      (and-map sym? #'(name name* ...))
-- 
tg: (c399333..) t/ignore-r6rs-srfi-names (depends on: master)

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]


-- 
Andreas Rottmann -- <http://rotty.yi.org/>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-19 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-19 12:20 [PATCH] Ignore the SRFI name component(s) in R6RS imports Andreas Rottmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).