X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcross-condition.lisp;h=cd8580c7dd9deba8fcc1fad062f96f72650f171d;hb=51e63f301624e39febdd85b5feba19b7c980f307;hp=1f865bc94e4d819d04a2414a7e9e1d4c5312db8c;hpb=b2decb8f7e46886dbb17c695d95c21c9e401fd07;p=sbcl.git diff --git a/src/code/cross-condition.lisp b/src/code/cross-condition.lisp index 1f865bc..cd8580c 100644 --- a/src/code/cross-condition.lisp +++ b/src/code/cross-condition.lisp @@ -17,29 +17,45 @@ ;;; compiler, it will only be a style-warning. (define-condition format-too-many-args-warning (simple-warning) ()) -;;; OAOOM warning: see condition.lisp -- we want a full definition in -;;; the cross-compiler as well, in order to have nice error messages -;;; instead of complaints of undefined-function +;;; KLUDGE: OAOOM warning: see condition.lisp -- we want a full +;;; definition in the cross-compiler as well, in order to have nice +;;; error messages instead of complaints of undefined-function ;;; ENCAPSULATED-CONDITION. (define-condition encapsulated-condition (condition) ((condition :initarg :condition :reader encapsulated-condition))) +;;; KLUDGE: another OAOOM problem, this time to allow conditions with +;;; REFERENCE-CONDITION in their supercondition list on the host. +;;; (This doesn't feel like the entirely right solution, it has to be +;;; said.) -- CSR, 2004-09-15 +(define-condition reference-condition () + ((references :initarg :references :reader reference-condition-references))) + +;;; KLUDGE: yet another OAOOM. +;;; +;;; FIXME: This is clearly one OAOOM KLUDGE too many in a row. When tempted +;;; to add another one invent DEF!CONDITION or whatever seems necessary, +;;; and replace these. +(define-condition type-warning (reference-condition simple-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) + "~@.~:@>" - ())))) + ())))) ;;; These are should never be instantiated before the real definitions ;;; come in.