mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-04-30 13:11:17 -07:00
No need to recreate this closure every time.
This commit is contained in:
parent
bc39c7189f
commit
4c69b75089
1 changed files with 4 additions and 3 deletions
|
|
@ -1135,6 +1135,9 @@
|
|||
(pprint-dispatch-table-cons-entries orig))
|
||||
new))
|
||||
|
||||
(defun default-pprint-dispatch (stream object)
|
||||
(write-ugly-object object stream))
|
||||
|
||||
(defun pprint-dispatch (object &optional (table *print-pprint-dispatch*))
|
||||
(declare (type (or pprint-dispatch-table null) table))
|
||||
(let* ((table (or table *initial-pprint-dispatch*))
|
||||
|
|
@ -1151,9 +1154,7 @@
|
|||
(return entry)))))
|
||||
(if entry
|
||||
(values (pprint-dispatch-entry-function entry) t)
|
||||
(values #'(lambda (stream object)
|
||||
(write-ugly-object object stream))
|
||||
nil))))
|
||||
(values #'default-pprint-dispatch nil))))
|
||||
|
||||
(defun set-pprint-dispatch (type function &optional
|
||||
(priority 0) (table *print-pprint-dispatch*))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue