Commit eab5608d authored by wlott's avatar wlott
Browse files

Changed main-entry to use etypecase instead of assuming that the arg is

always either a lambda or an optional dispatch, because sometimes raw
functionals get passed in.  This way we will get a better error message.
parent a32c0296
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.74 1993/11/16 18:28:07 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.75 1994/02/08 14:29:50 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -1395,9 +1395,10 @@ ...@@ -1395,9 +1395,10 @@
;;; ;;;
(proclaim '(function main-entry (functional) clambda)) (proclaim '(function main-entry (functional) clambda))
(defun main-entry (functional) (defun main-entry (functional)
(if (lambda-p functional) (etypecase functional
functional (clambda functional)
(optional-dispatch-main-entry functional))) (optional-dispatch
(optional-dispatch-main-entry functional))))
;;; Looks-Like-An-MV-Bind -- Interface ;;; Looks-Like-An-MV-Bind -- Interface
;;; ;;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment