Simplified the forms produced by DEFSTRUCT leaving most of the job for DEFINE-STRUCTURE.

This commit is contained in:
jjgarcia 2004-05-12 07:47:43 +00:00
parent 31ee0d5d58
commit 6231de024f

View file

@ -312,7 +312,6 @@
Defines a structure named by NAME. The doc-string DOC, if supplied, is saved
as a STRUCTURE doc and can be retrieved by (documentation 'NAME 'structure)."
(let*((slot-descriptions slots)
;;#+clos
(name (if (consp name&opts) (first name&opts) name&opts))
(options (when (consp name&opts) (rest name&opts)))
(conc-name (string-concatenate name "-"))
@ -326,11 +325,6 @@ as a STRUCTURE doc and can be retrieved by (documentation 'NAME 'structure)."
offset name-offset
documentation)
(when (consp name)
;; The defstruct options are supplied.
(setq options (cdr name))
(setq name (car name)))
;; Parse the defstruct options.
(do ((os options (cdr os)) (o) (v))
((endp os))