cleanup as suggested by John
svn: r7282
This commit is contained in:
parent
7e085ae75f
commit
43e4dc5e5b
|
@ -143,7 +143,7 @@
|
||||||
'module-language
|
'module-language
|
||||||
"the definitions window must contain a module")
|
"the definitions window must contain a module")
|
||||||
(let-values ([(name new-module)
|
(let-values ([(name new-module)
|
||||||
(transform-module filename super-result super-result)])
|
(transform-module filename super-result)])
|
||||||
(set! module-name name)
|
(set! module-name name)
|
||||||
new-module)))]
|
new-module)))]
|
||||||
[(= 3 iteration-number)
|
[(= 3 iteration-number)
|
||||||
|
@ -400,19 +400,19 @@
|
||||||
;; in addition to exporting everything, the result module's name
|
;; in addition to exporting everything, the result module's name
|
||||||
;; is the fully path-expanded name with a directory prefix,
|
;; is the fully path-expanded name with a directory prefix,
|
||||||
;; if the file has been saved
|
;; if the file has been saved
|
||||||
(define (transform-module filename stx unexpanded-stx)
|
(define (transform-module filename stx)
|
||||||
(syntax-case stx (module)
|
(syntax-case stx (module)
|
||||||
[(module name lang bodies ...)
|
[(module name lang bodies ...)
|
||||||
(let ([v-name (syntax name)])
|
(let ([v-name (syntax name)])
|
||||||
(when filename
|
(when filename
|
||||||
(check-filename-matches filename
|
(check-filename-matches filename
|
||||||
(syntax-object->datum (syntax name))
|
(syntax-object->datum (syntax name))
|
||||||
unexpanded-stx))
|
stx))
|
||||||
(values v-name stx))]
|
(values v-name stx))]
|
||||||
[else
|
[else
|
||||||
(raise-syntax-error 'module-language
|
(raise-syntax-error 'module-language
|
||||||
"only module expressions are allowed"
|
"only module expressions are allowed"
|
||||||
unexpanded-stx)]))
|
stx)]))
|
||||||
|
|
||||||
;; get-module-name-prefix : path -> string
|
;; get-module-name-prefix : path -> string
|
||||||
;; returns the symbol that gets passed the current-module-name-prefix
|
;; returns the symbol that gets passed the current-module-name-prefix
|
||||||
|
|
Loading…
Reference in New Issue
Block a user