mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
Using detectable optional args.
This commit is contained in:
parent
e136aa78e2
commit
1e59b80a53
1 changed files with 5 additions and 6 deletions
|
@ -252,9 +252,10 @@
|
||||||
;;> Extends the config with anadditional alist.
|
;;> Extends the config with anadditional alist.
|
||||||
|
|
||||||
(define (conf-extend config alist . o)
|
(define (conf-extend config alist . o)
|
||||||
(if (pair? alist)
|
(let ((source (and (pair? o) (car o))))
|
||||||
(make-conf alist config (and (pair? o) (car o)) (current-second))
|
(if (pair? alist)
|
||||||
config))
|
(make-conf alist config source (current-second))
|
||||||
|
config)))
|
||||||
|
|
||||||
;;> Joins two configs.
|
;;> Joins two configs.
|
||||||
|
|
||||||
|
@ -450,9 +451,7 @@
|
||||||
(else (conf-verify-match (cadr def) cell warn)))))))
|
(else (conf-verify-match (cadr def) cell warn)))))))
|
||||||
|
|
||||||
(define (conf-verify spec config . o)
|
(define (conf-verify spec config . o)
|
||||||
(let ((warn (if (pair? o)
|
(let ((warn (if (pair? o) (car o) conf-default-warn)))
|
||||||
(lambda args (apply (car o) args) #f)
|
|
||||||
conf-default-warn)))
|
|
||||||
(let lp ((config config))
|
(let lp ((config config))
|
||||||
(cond
|
(cond
|
||||||
(config
|
(config
|
||||||
|
|
Loading…
Add table
Reference in a new issue