Don't forget to output the return codes with their frames.
authorChris Hanson <org/chris-hanson/cph>
Thu, 27 Oct 1988 07:07:27 +0000 (07:07 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 27 Oct 1988 07:07:27 +0000 (07:07 +0000)
v7/src/compiler/etc/stackp.scm
v8/src/compiler/etc/stackp.scm

index e635a1c6e698555302689de151bde2ac5c7cca0d..b8ce9534865fe30bdfc5c9818aa08ad4e2f1f7a2 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/etc/stackp.scm,v 1.2 1988/10/26 04:14:53 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/etc/stackp.scm,v 1.3 1988/10/27 07:07:27 cph Exp $
 
 Copyright (c) 1987, 1988 Massachusetts Institute of Technology
 
@@ -74,11 +74,12 @@ MIT in each case. |#
 
 (define (continuation->stream continuation)
   (let stack-frame->stream ((frame (continuation->stack-frame continuation)))
-    (let ((length (stack-frame/length frame)))
-      (let loop ((n 0))
-       (if (< n length)
-           (cons-stream (stack-frame/ref frame n) (loop (1+ n)))
-           (let ((next (stack-frame/next frame)))
-             (if next
-                 (stack-frame->stream next)
-                 (stream))))))))
\ No newline at end of file
+    (cons-stream (stack-frame/return-address frame)
+                (let ((length (stack-frame/length frame)))
+                  (let loop ((n 0))
+                    (if (< n length)
+                        (cons-stream (stack-frame/ref frame n) (loop (1+ n)))
+                        (let ((next (stack-frame/next frame)))
+                          (if next
+                              (stack-frame->stream next)
+                              (stream)))))))))
\ No newline at end of file
index 5d511a360619b59b487cd714e3f024aa93f292c7..7e9cf6f9a4251689f31131ff28011cc8ea55b357 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/compiler/etc/stackp.scm,v 1.2 1988/10/26 04:14:53 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/compiler/etc/stackp.scm,v 1.3 1988/10/27 07:07:27 cph Exp $
 
 Copyright (c) 1987, 1988 Massachusetts Institute of Technology
 
@@ -74,11 +74,12 @@ MIT in each case. |#
 
 (define (continuation->stream continuation)
   (let stack-frame->stream ((frame (continuation->stack-frame continuation)))
-    (let ((length (stack-frame/length frame)))
-      (let loop ((n 0))
-       (if (< n length)
-           (cons-stream (stack-frame/ref frame n) (loop (1+ n)))
-           (let ((next (stack-frame/next frame)))
-             (if next
-                 (stack-frame->stream next)
-                 (stream))))))))
\ No newline at end of file
+    (cons-stream (stack-frame/return-address frame)
+                (let ((length (stack-frame/length frame)))
+                  (let loop ((n 0))
+                    (if (< n length)
+                        (cons-stream (stack-frame/ref frame n) (loop (1+ n)))
+                        (let ((next (stack-frame/next frame)))
+                          (if next
+                              (stack-frame->stream next)
+                              (stream)))))))))
\ No newline at end of file