space toplevel forms the way the source does
Every toplevel form was followed by a blank line whether or not one was written, so the prelude's run of typedefs arrived at twice the height. A function had no location of its own to measure from either, having lost it where its header and body are stitched together.
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
(define (compile-to-c source)
|
||||
"Run reader -> semen -> writer on SOURCE, returning the generated C.
|
||||
parse-all is called directly rather than through read-raw-forms so the
|
||||
fixture can be given a file name: a location is (file . line), and the
|
||||
fixture can be given a file name: a location carries one, and the
|
||||
file is what makes an imported module report itself rather than the unit
|
||||
that imported it."
|
||||
(let ((forms (with-input-from-string source
|
||||
|
||||
Reference in New Issue
Block a user