inline some trivial functions
This commit is contained in:
parent
63c34327b9
commit
8b82498cd7
piclib/picrin
|
@ -114,11 +114,6 @@
|
||||||
(lambda (sym)
|
(lambda (sym)
|
||||||
(make-identifier sym mac-env))))
|
(make-identifier sym mac-env))))
|
||||||
|
|
||||||
(define (uninject sym)
|
|
||||||
(if (dictionary-has? icache* sym)
|
|
||||||
(dictionary-ref icache* sym)
|
|
||||||
(rename sym)))
|
|
||||||
|
|
||||||
(define (compare x y)
|
(define (compare x y)
|
||||||
(if (not (symbol? x))
|
(if (not (symbol? x))
|
||||||
#f
|
#f
|
||||||
|
@ -126,13 +121,11 @@
|
||||||
#f
|
#f
|
||||||
(identifier=? mac-env x mac-env y))))
|
(identifier=? mac-env x mac-env y))))
|
||||||
|
|
||||||
(define (wrap expr)
|
(walk (lambda (sym)
|
||||||
(walk inject expr))
|
(if (dictionary-has? icache* sym)
|
||||||
|
(dictionary-ref icache* sym)
|
||||||
(define (unwrap expr)
|
(rename sym)))
|
||||||
(walk uninject expr))
|
(f (walk inject expr) inject compare))))
|
||||||
|
|
||||||
(unwrap (f (wrap expr) inject compare))))
|
|
||||||
|
|
||||||
(export make-syntactic-closure
|
(export make-syntactic-closure
|
||||||
close-syntax
|
close-syntax
|
||||||
|
|
Loading…
Reference in New Issue