From ff11e36d60e22482e062a9ed550e834efc99c767 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Sat, 9 Oct 2004 14:38:32 +0000
Subject: [PATCH] PPRINT-POP is supposed to return NIL when the list arg to
 PPRINT-LOGICAL-BLOCK is NIL.  Fixes ANSI test pprint-pop.9.

---
 code/pprint.lisp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/code/pprint.lisp b/code/pprint.lisp
index 82cc887bf..d8792e0be 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.46 2004/10/08 19:13:37 rtoy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.47 2004/10/09 14:38:32 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -763,8 +763,9 @@
 				    (output-object ,object-var ,stream-var)
 				    (return-from ,block-name nil))))
 			    (incf ,count-name)
-			    ,@(when object
-				`((pop ,object-var)))))
+			    ,@(if object
+				  `((pop ,object-var))
+				  `(nil))))
 		     (declare (ignorable #',pp-pop-name))
 		     (unwind-protect
 			  (macrolet ((pprint-pop ()
-- 
GitLab