Fix missed reference in last change.
authorChris Hanson <org/chris-hanson/cph>
Fri, 15 Mar 2002 01:42:41 +0000 (01:42 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 15 Mar 2002 01:42:41 +0000 (01:42 +0000)
v7/src/cref/toplev.scm

index ec1006b5e133dca155826815b30ae1133089ca87..c44faa730a806309496d603e569889319459ff2d 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: toplev.scm,v 1.17 2002/03/14 04:58:39 cph Exp $
+$Id: toplev.scm,v 1.18 2002/03/15 01:42:41 cph Exp $
 
 Copyright (c) 1988-2002 Massachusetts Institute of Technology
 
@@ -37,14 +37,16 @@ USA.
          (kernel pathname pmodel changes? os-type))))))
 
 (define (cref/generate-trivial-constructor filename #!optional os-type)
-  (let ((pathname (merge-pathnames filename)))
+  (let ((pathname (merge-pathnames filename))
+       (os-type
+        (if (or (default-object? os-type)
+                (not os-type))
+            microcode-id/operating-system
+            os-type)))
     (write-external-descriptions pathname
-                                (read-package-model pathname)
+                                (read-package-model pathname os-type)
                                 #f
-                                (if (or (default-object? os-type)
-                                        (not os-type))
-                                    microcode-id/operating-system
-                                    os-type))))
+                                os-type)))
 
 (define cref/generate-cref
   (generate/common