Skip to content

Commit

Permalink
Fixed two bugs reported by Chas Emerick (Thanks Chas!):
Browse files Browse the repository at this point in the history
  1. The call to process-body for (begin ...) expressions at line 1594 was
     missing its who argument ('begin).
  2. Calling the result of the C compiler on the output was failing for people
     who don't have '.' in their path (yes, I have '.' in my path), because the
     system call on line 3535 was missing './' in front of 't'.

  c.ss
  • Loading branch information
akeep committed Jan 22, 2015
1 parent 1ca4751 commit 610fed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c.ss
Expand Up @@ -1591,7 +1591,7 @@
(cons 'and (lambda (env . e*) `(and ,(Expr* e* env) ...)))
(cons 'not (lambda (env e) `(not ,(Expr e env))))
(cons 'begin (lambda (env . e*)
(process-body env e*
(process-body 'begin env e*
(lambda (e* e)
`(begin ,e* ... ,e)))))
(cons 'lambda (lambda (env fmls . body*)
Expand Down Expand Up @@ -3532,7 +3532,7 @@
(if (use-boehm?) "-lgc" "")))
(when (file-exists? "t.out")
(delete-file "t.out"))
(system "t > t.out")
(system "./t > t.out")
(call-with-input-file "t.out" read))
(with-syntax ([pass (car pass*)]
[unparser (car unparser*)])
Expand Down

0 comments on commit 610fed5

Please sign in to comment.