Change `sf' so that it does sticky filename defaulting when given
authorChris Hanson <org/chris-hanson/cph>
Tue, 30 Jun 1987 21:48:06 +0000 (21:48 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 30 Jun 1987 21:48:06 +0000 (21:48 +0000)
multiple filenames.

v7/src/sf/make.scm
v7/src/sf/toplev.scm
v8/src/sf/make.scm
v8/src/sf/toplev.scm

index 6be9d8ef5249303dea5deb0f29b31cde82992a8b..1d649eec978b24767e7f2919a01036090fe69e9f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/make.scm,v 3.9 1987/06/05 21:36:53 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/make.scm,v 3.10 1987/06/30 21:48:06 cph Exp $
 
 Copyright (c) 1987 Massachusetts Institute of Technology
 
@@ -60,7 +60,7 @@ MIT in each case. |#
     (make-environment
       (define :name "SF")
       (define :version 3)
-      (define :modification 9)
+      (define :modification 10)
       (define :files)
 
       (define :files-lists
index d5ebe017aede27780538efdd975c26ead5cee197..35e60e582389f5e2e699662dc556ff78a69dc365 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/toplev.scm,v 3.3 1987/05/09 23:22:58 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/toplev.scm,v 3.4 1987/06/30 21:45:39 cph Rel $
 
 Copyright (c) 1987 Massachusetts Institute of Technology
 
@@ -117,37 +117,29 @@ Currently only the 68000 implementation needs this."
 (define sf/unfasl-pathname-type "unf")
 
 (define (syntax-file input-string bin-string spec-string)
-  (let ((eval-sf-expression
-        (lambda (input-string)
-          (let ((input-path
-                 (pathname->input-truename
-                  (merge-pathnames (->pathname input-string)
-                                   sf/default-input-pathname))))
-            (if (not input-path)
-                (error "SF: File does not exist" input-string))
-            (let ((bin-path
-                   (let ((bin-path
-                          (pathname-new-type input-path
-                                             sf/output-pathname-type)))
-                     (if bin-string
-                         (merge-pathnames (->pathname bin-string) bin-path)
-                         bin-path))))
-              (let ((spec-path
-                     (and (or spec-string sfu?)
-                          (let ((spec-path
-                                 (pathname-new-type bin-path
-                                                    sf/unfasl-pathname-type)))
-                            (if spec-string
-                                (merge-pathnames (->pathname spec-string)
-                                                 spec-path)
-                                spec-path)))))
-                (syntax-file* input-path bin-path spec-path)))))))
-    (if (list? input-string)
-       (for-each (lambda (input-string)
-                   (eval-sf-expression input-string))
-                 input-string)
-       (eval-sf-expression input-string)))
-  *the-non-printing-object*)
+  (for-each
+   (lambda (pathname)
+     (let ((input-path (pathname->input-truename pathname)))
+       (if (not input-path)
+          (error "SF: File does not exist" pathname))
+       (let ((bin-path
+             (let ((bin-path
+                    (pathname-new-type input-path
+                                       sf/output-pathname-type)))
+               (if bin-string
+                   (merge-pathnames (->pathname bin-string) bin-path)
+                   bin-path))))
+        (let ((spec-path
+               (and (or spec-string sfu?)
+                    (let ((spec-path
+                           (pathname-new-type bin-path
+                                              sf/unfasl-pathname-type)))
+                      (if spec-string
+                          (merge-pathnames (->pathname spec-string)
+                                           spec-path)
+                          spec-path)))))
+          (syntax-file* input-path bin-path spec-path)))))
+   (stickify-input-filenames input-string sf/default-input-pathname)))
 \f
 (define (syntax-file* input-pathname bin-pathname spec-pathname)
   (let ((start-date (date))
index 2d69c630d8c26a7e4b6f64359c312890ab3ec238..489177a2cf8d458735146d065edf9a3bbce048a3 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/make.scm,v 3.9 1987/06/05 21:36:53 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/make.scm,v 3.10 1987/06/30 21:48:06 cph Exp $
 
 Copyright (c) 1987 Massachusetts Institute of Technology
 
@@ -60,7 +60,7 @@ MIT in each case. |#
     (make-environment
       (define :name "SF")
       (define :version 3)
-      (define :modification 9)
+      (define :modification 10)
       (define :files)
 
       (define :files-lists
index 0a99c88a6a2e552ff24412b66d243a34f63fb2c3..12726580c593af3494003564bb40bd6d1a251bad 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/toplev.scm,v 3.3 1987/05/09 23:22:58 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/sf/toplev.scm,v 3.4 1987/06/30 21:45:39 cph Rel $
 
 Copyright (c) 1987 Massachusetts Institute of Technology
 
@@ -117,37 +117,29 @@ Currently only the 68000 implementation needs this."
 (define sf/unfasl-pathname-type "unf")
 
 (define (syntax-file input-string bin-string spec-string)
-  (let ((eval-sf-expression
-        (lambda (input-string)
-          (let ((input-path
-                 (pathname->input-truename
-                  (merge-pathnames (->pathname input-string)
-                                   sf/default-input-pathname))))
-            (if (not input-path)
-                (error "SF: File does not exist" input-string))
-            (let ((bin-path
-                   (let ((bin-path
-                          (pathname-new-type input-path
-                                             sf/output-pathname-type)))
-                     (if bin-string
-                         (merge-pathnames (->pathname bin-string) bin-path)
-                         bin-path))))
-              (let ((spec-path
-                     (and (or spec-string sfu?)
-                          (let ((spec-path
-                                 (pathname-new-type bin-path
-                                                    sf/unfasl-pathname-type)))
-                            (if spec-string
-                                (merge-pathnames (->pathname spec-string)
-                                                 spec-path)
-                                spec-path)))))
-                (syntax-file* input-path bin-path spec-path)))))))
-    (if (list? input-string)
-       (for-each (lambda (input-string)
-                   (eval-sf-expression input-string))
-                 input-string)
-       (eval-sf-expression input-string)))
-  *the-non-printing-object*)
+  (for-each
+   (lambda (pathname)
+     (let ((input-path (pathname->input-truename pathname)))
+       (if (not input-path)
+          (error "SF: File does not exist" pathname))
+       (let ((bin-path
+             (let ((bin-path
+                    (pathname-new-type input-path
+                                       sf/output-pathname-type)))
+               (if bin-string
+                   (merge-pathnames (->pathname bin-string) bin-path)
+                   bin-path))))
+        (let ((spec-path
+               (and (or spec-string sfu?)
+                    (let ((spec-path
+                           (pathname-new-type bin-path
+                                              sf/unfasl-pathname-type)))
+                      (if spec-string
+                          (merge-pathnames (->pathname spec-string)
+                                           spec-path)
+                          spec-path)))))
+          (syntax-file* input-path bin-path spec-path)))))
+   (stickify-input-filenames input-string sf/default-input-pathname)))
 \f
 (define (syntax-file* input-pathname bin-pathname spec-pathname)
   (let ((start-date (date))