Skip to content

Commit 22def6f

Browse files
committed
Clean up requires in notes.
1 parent e0a76cb commit 22def6f

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

www/notes/abscond.scrbl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
@(define codeblock-include (make-codeblock-include #'here))
1515

16-
@(ev '(require rackunit a86))
17-
@(for-each (λ (f) (ev `(require (file ,(path->string (build-path langs "abscond" f))))))
18-
'("main.rkt" "correct.rkt"))
16+
@(ev '(require rackunit a86 abscond abscond/correct))
1917

2018
@(define (shellbox . s)
2119
(parameterize ([current-directory (build-path langs "abscond")])

www/notes/evildoer.scrbl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818

1919
@(define codeblock-include (make-codeblock-include #'h))
2020

21-
@(ev '(require rackunit a86))
22-
@(for-each (λ (f) (ev `(require (file ,(path->string (build-path langs "evildoer" f))))))
23-
'("main.rkt" "compile-ops.rkt" "correct.rkt"))
24-
21+
@(ev '(require rackunit a86 evildoer evildoer/correct evildoer/compile-ops))
22+
@;{This is needed for the example that uses current-objs}
2523
@(ev `(current-directory ,(path->string (build-path langs "evildoer"))))
26-
@(void (ev '(with-output-to-string (thunk (system "make runtime.o")))))
2724

2825
@(require (for-syntax racket/base))
2926
@(begin-for-syntax

www/notes/extort.scrbl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515

1616
@(define codeblock-include (make-codeblock-include #'h))
1717

18-
@(ev '(require rackunit a86))
19-
@(for-each (λ (f) (ev `(require (file ,(path->string (build-path langs "extort" f))))))
20-
'("main.rkt" "correct.rkt" "compile-ops.rkt"))
18+
@(ev '(require rackunit a86 extort extort/compile-ops extort/correct))
2119

22-
@(ev `(current-directory ,(path->string (build-path langs "extort"))))
23-
@(void (ev '(with-output-to-string (thunk (system "make runtime.o")))))
2420
@;{Hack to get un-provided functions from compile-ops}
2521
@(ev '(require (only-in rackunit require/expose)))
2622
@(ev '(require/expose extort/compile-ops [assert-integer assert-char assert-byte assert-codepoint]))

www/notes/fraud.scrbl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@
1212

1313
@(define codeblock-include (make-codeblock-include #'h))
1414

15-
@(ev '(require rackunit a86))
16-
@(ev `(current-directory ,(path->string (build-path langs "fraud"))))
17-
@(void (ev '(with-output-to-string (thunk (system "make runtime.o")))))
18-
@(for-each (λ (f) (ev `(require (file ,f))))
19-
'("main.rkt" "translate.rkt"))
20-
15+
@(ev '(require rackunit a86 fraud fraud/translate))
2116

2217
@(define this-lang "Fraud")
2318
@(define prefix (string-append this-lang "-"))

0 commit comments

Comments
 (0)