X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcross-condition.lisp;h=a5f8b2bdc1597df3a09cbefc1d637075a8426bcc;hb=829ced3e78a23ba153ba4db64e6ea6984c2313b6;hp=5c2f82145badbc2ee7b4bb35356081c4f851ce16;hpb=0220b66ca721bc9515ebf2dedab69407850ff518;p=sbcl.git diff --git a/src/code/cross-condition.lisp b/src/code/cross-condition.lisp index 5c2f821..a5f8b2b 100644 --- a/src/code/cross-condition.lisp +++ b/src/code/cross-condition.lisp @@ -39,23 +39,44 @@ (define-condition type-warning (reference-condition simple-warning) () (:default-initargs :references (list '(:sbcl :node "Handling of Types")))) +(define-condition type-style-warning (reference-condition simple-style-warning) + () + (:default-initargs :references (list '(:sbcl :node "Handling of Types")))) (define-condition bug (simple-error) () (:report (lambda (condition stream) (format stream - "~@< ~? ~:@_~?~:>" - (simple-condition-format-control condition) - (simple-condition-format-arguments condition) - "~@" + (simple-condition-format-control condition) + (simple-condition-format-arguments condition) + "~@.~:@>" - ())))) + ())))) + +;;; OAOOM... +(define-condition compiler-macro-keyword-problem () + ((argument :initarg :argument :reader compiler-macro-keyword-argument)) + (:report (lambda (condition stream) + (format stream "~@" + (compiler-macro-keyword-argument condition))))) + +;;; OAOOM... +(define-condition duplicate-definition (reference-condition warning) + ((name :initarg :name :reader duplicate-definition-name)) + (:report (lambda (c s) + (format s "~@" + (duplicate-definition-name c)))) + (:default-initargs :references (list '(:ansi-cl :section (3 2 2 3))))) ;;; These are should never be instantiated before the real definitions ;;; come in.