move recons to utils
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
(declare (unit semen)
|
(declare (unit semen)
|
||||||
(uses sex-macros
|
(uses sex-macros
|
||||||
sex-modules))
|
sex-modules
|
||||||
|
utils))
|
||||||
|
|
||||||
(import
|
(import
|
||||||
(chicken string)
|
(chicken string)
|
||||||
@@ -112,12 +113,6 @@
|
|||||||
(semen-walk-form (car new-form) walk-fn env)
|
(semen-walk-form (car new-form) walk-fn env)
|
||||||
(semen-walk-form (cdr new-form) walk-fn env)))))))
|
(semen-walk-form (cdr new-form) walk-fn env)))))))
|
||||||
|
|
||||||
(define (recons old-cons new-car new-cdr)
|
|
||||||
(if (and (eq? new-car (car old-cons))
|
|
||||||
(eq? new-cdr (cdr old-cons)))
|
|
||||||
old-cons
|
|
||||||
(cons new-car new-cdr)))
|
|
||||||
|
|
||||||
;;; Typdef
|
;;; Typdef
|
||||||
|
|
||||||
(define (process-typedef new-type target acc)
|
(define (process-typedef new-type target acc)
|
||||||
|
|||||||
Reference in New Issue
Block a user