Remove unnecessary inline/notinline pairs for defstruct ctors.
[sbcl.git] / src / code / restart.lisp
blob4a90a52c6cccab922366063394eeab9201664a4e
1 ;;;; This software is part of the SBCL system. See the README file for
2 ;;;; more information.
3 ;;;;
4 ;;;; This software is derived from the CMU CL system, which was
5 ;;;; written at Carnegie Mellon University and released into the
6 ;;;; public domain. The software is in the public domain and is
7 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
8 ;;;; files for more information.
10 (in-package "SB!KERNEL")
12 ;;;; This defstruct should appear before any use of WITH-CONDITION-RESTARTS
13 ;;;; so that the slot accessors are transformed.
15 (defstruct (restart (:constructor make-restart
16 ;; Having TEST-FUNCTION at the end allows
17 ;; to not replicate its default value in RESTART-BIND.
18 (name function
19 &optional report-function
20 interactive-function
21 test-function))
22 (:copier nil) (:predicate nil))
23 (name (missing-arg) :type symbol :read-only t)
24 (function (missing-arg) :type function :read-only t)
25 (report-function nil :type (or null function) :read-only t)
26 (interactive-function nil :type (or null function) :read-only t)
27 (test-function (lambda (cond) (declare (ignore cond)) t) :type function :read-only t)
28 ;; the list of conditions which are currently associated to the
29 ;; restart. maintained by WITH-CONDITION-RESTARTS in a neither
30 ;; thread- nor interrupt-safe way. This should not be a problem
31 ;; however, since safe uses of restarts have to assume dynamic
32 ;; extent.
33 (associated-conditions '() :type list))
35 #!-sb-fluid (declaim (freeze-type restart))