summaryrefslogtreecommitdiffstats
path: root/debug.scm
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:28 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:28 -0800
commitbd9733926076885e3417b74de76e4c9c7bc56254 (patch)
tree2c99dced547d48407ad44cb0e45e31bb4d02ce43 /debug.scm
parentfa3f23105ddcf07c5900de47f19af43d1db1b597 (diff)
downloadslib-bd9733926076885e3417b74de76e4c9c7bc56254.tar.gz
slib-bd9733926076885e3417b74de76e4c9c7bc56254.zip
Import Upstream version 2c7upstream/2c7
Diffstat (limited to 'debug.scm')
-rw-r--r--debug.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/debug.scm b/debug.scm
index 08406a9..58f6b03 100644
--- a/debug.scm
+++ b/debug.scm
@@ -19,12 +19,12 @@
(require 'trace)
(require 'break)
+(require 'line-i/o)
(define (for-each-top-level-definition-in-file file proc)
(call-with-input-file
file
- (lambda
- (port)
+ (lambda (port)
(letrec
((walk
(lambda (exp)
@@ -45,6 +45,8 @@
((defmacro define-syntax) "should do something clever here")
((define)
(proc exp))))))))
+ (if (eqv? #\# (peek-char port))
+ (read-line port)) ;remove `magic-number'
(do ((form (read port) (read port)))
((eof-object? form))
(walk form))))))