mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-16 14:21:48 -08:00
Repeated eval-when statements made defstruct forms execute twice in the :compile-toplevel environment.
This commit is contained in:
parent
991bc3ab78
commit
358233204a
1 changed files with 2 additions and 2 deletions
|
|
@ -497,7 +497,7 @@ as a STRUCTURE doc and can be retrieved by (documentation 'NAME 'structure)."
|
|||
|
||||
;; Check the print-function.
|
||||
(when (and print-function type)
|
||||
(error "An print function is supplied to a typed structure."))
|
||||
(error "A print function is supplied to a typed structure."))
|
||||
|
||||
;;
|
||||
;; The constructors rely on knowing the structure class. For toplevel
|
||||
|
|
@ -514,7 +514,7 @@ as a STRUCTURE doc and can be retrieved by (documentation 'NAME 'structure)."
|
|||
(make-constructor name constructor type named
|
||||
slot-descriptions))
|
||||
constructors)))
|
||||
`(eval-when (:compile-toplevel :load-toplevel :execute)
|
||||
`(progn
|
||||
(eval-when (:compile-toplevel :load-toplevel)
|
||||
,core
|
||||
,(si::register-with-pde whole)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue