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.
|
||||
|
||||
(define (conf-extend config alist . o)
|
||||
(if (pair? alist)
|
||||
(make-conf alist config (and (pair? o) (car o)) (current-second))
|
||||
config))
|
||||
(let ((source (and (pair? o) (car o))))
|
||||
(if (pair? alist)
|
||||
(make-conf alist config source (current-second))
|
||||
config)))
|
||||
|
||||
;;> Joins two configs.
|
||||
|
||||
|
@ -450,9 +451,7 @@
|
|||
(else (conf-verify-match (cadr def) cell warn)))))))
|
||||
|
||||
(define (conf-verify spec config . o)
|
||||
(let ((warn (if (pair? o)
|
||||
(lambda args (apply (car o) args) #f)
|
||||
conf-default-warn)))
|
||||
(let ((warn (if (pair? o) (car o) conf-default-warn)))
|
||||
(let lp ((config config))
|
||||
(cond
|
||||
(config
|
||||
|
|
Loading…
Add table
Reference in a new issue