1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -08:00

* lisp/emacs-lisp/comp-cstr.el (comp-cstr-copy): Tweak for perf.

This commit is contained in:
Andrea Corallo 2020-12-23 10:48:29 +01:00
parent 433ae7b0a5
commit 2a22fa8b68

View file

@ -113,10 +113,10 @@ Integer values are handled in the `range' slot.")
(defun comp-cstr-copy (cstr)
"Return a deep copy of CSTR."
(with-comp-cstr-accessors
(make-comp-cstr :typeset (copy-tree (typeset cstr))
:valset (copy-tree (valset cstr))
(make-comp-cstr :typeset (copy-sequence (typeset cstr))
:valset (copy-sequence (valset cstr))
:range (copy-tree (range cstr))
:neg (copy-tree (neg cstr)))))
:neg (neg cstr))))
(defsubst comp-cstr-empty-p (cstr)
"Return t if CSTR is equivalent to the `nil' type specifier or nil otherwise."