diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:28 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:28 -0800 |
commit | bd9733926076885e3417b74de76e4c9c7bc56254 (patch) | |
tree | 2c99dced547d48407ad44cb0e45e31bb4d02ce43 /debug.scm | |
parent | fa3f23105ddcf07c5900de47f19af43d1db1b597 (diff) | |
download | slib-bd9733926076885e3417b74de76e4c9c7bc56254.tar.gz slib-bd9733926076885e3417b74de76e4c9c7bc56254.zip |
Import Upstream version 2c7upstream/2c7
Diffstat (limited to 'debug.scm')
-rw-r--r-- | debug.scm | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)))))) |