From 141c827a37c10f32bf3e552c66ccb63ba02f96fa Mon Sep 17 00:00:00 2001
From: dtc <dtc>
Date: Fri, 14 Apr 2000 03:50:24 +0000
Subject: [PATCH] For the various case macros, do not generate an error during
 macro-expansion when there are no cases as this appears unnecessary according
 to the ANSI CL spec; from Raymond Toy.

---
 code/macros.lisp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/code/macros.lisp b/code/macros.lisp
index 59e642718..06cc4edf8 100644
--- a/code/macros.lisp
+++ b/code/macros.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/macros.lisp,v 1.60 1999/09/15 15:12:41 dtc Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/macros.lisp,v 1.61 2000/04/14 03:50:24 dtc Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -1146,12 +1146,6 @@
 ;;; RESTART-CASE allowing keyform to be set and retested.
 ;;;
 (defun case-body (name keyform cases multi-p test errorp proceedp)
-  (when (null cases)
-    (error 'simple-type-error
-	   :datum cases
-	   :expected-type 'list
-	   :format-control "~S was called without any clauses."
-	   :format-arguments (list name)))
   (let ((keyform-value (gensym))
 	(clauses ())
 	(keys ()))
-- 
GitLab