From 2dea08d27f5c9b9c540eea53cc404bfcdc80c3f6 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Thu, 12 May 2005 18:49:02 +0000
Subject: [PATCH] Add a pprinter for declare.  We were print declare like

    (declare (type fixnum n)
      (type bar x))

We now get

    (declare (type fixnum n)
             (type bar x))
---
 code/pprint.lisp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/code/pprint.lisp b/code/pprint.lisp
index ded974267..595f04e58 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.52 2004/12/21 18:00:34 rtoy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.53 2005/05/12 18:49:02 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -1392,6 +1392,11 @@
   (funcall (formatter "~:<~W~^~1I~:@_~@{~:<~^~W~^~:@_~@{~W~^~:@_~}~:>~^~:@_~}~:>")
 	   stream list))
 
+(defun pprint-declare (stream list &rest noise)
+  (declare (ignore noise))
+  (funcall (formatter "~:<~W~^~@_ ~:I~W~@{ ~_~W~}~:>")
+	   stream list))
+
 (defun pprint-defun (stream list &rest noise)
   (declare (ignore noise))
   (funcall (formatter
@@ -1696,6 +1701,7 @@
     (tagbody pprint-tagbody)
     (throw pprint-block)
     (unwind-protect pprint-block)
+    (declare pprint-declare)
     
     ;; Macros.
     (case pprint-case)
-- 
GitLab