From d933965c43093f573e6ed6ec3a7be8e20e2d0963 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Wed, 5 May 2004 19:59:33 +0000 Subject: [PATCH] SET-PPRINT-DISPATCH is supposed to accept either a function or a function name for the dispatch function, but CMUCL only accepted a function. Allow either a function or symbol for the dispatch function, and change the declared type appropriately in the pprint-dispatch-entry structure slot. --- code/pprint.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/pprint.lisp b/code/pprint.lisp index 1353baff4..ad7bd1db8 100644 --- a/code/pprint.lisp +++ b/code/pprint.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.34 2004/01/16 03:13:10 toy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.35 2004/05/05 19:59:33 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -935,7 +935,7 @@ (initial-p *building-initial-table* :type (member t nil)) ;; ;; And the associated function. - (function (required-argument) :type function)) + (function (required-argument) :type (or symbol function))) (defun %print-pprint-dispatch-entry (entry stream depth) (declare (ignore depth)) @@ -1075,7 +1075,7 @@ (defun set-pprint-dispatch (type function &optional (priority 0) (table *print-pprint-dispatch*)) - (declare (type (or null function) function) + (declare (type (or null symbol function) function) (type real priority) (type pprint-dispatch-table table)) (if function -- GitLab