Optimize cl-struct-slot-value; fix test
authorDaniel Colascione <dancol@dancol.org>
Tue, 22 Apr 2014 03:51:12 +0000 (20:51 -0700)
committerDaniel Colascione <dancol@dancol.org>
Tue, 22 Apr 2014 03:51:12 +0000 (20:51 -0700)
commit66fda7948f7d0b94194d53edcfbf27bec596c019
tree5e24a63483e983e426a44bfa6b5629b28e3be6f4
parentd6f14ca729315dd94cdb24da47e1569519e3a4dd
Optimize cl-struct-slot-value; fix test

2014-04-22  Daniel Colascione  <dancol@dancol.org>

* emacs-lisp/cl-macs.el
(cl-struct-sequence-type,cl-struct-slot-info): Declare pure.
(cl-struct-slot-value): Conditionally use aref or nth so that the
compiler produces optimal code.

2014-04-22  Daniel Colascione  <dancol@dancol.org>

* automated/cl-lib.el (cl-lib-struct-accessors): Fix test to
account for removal of `cl-struct-set-slot-value'.
lisp/ChangeLog
lisp/emacs-lisp/cl-macs.el
test/ChangeLog
test/automated/cl-lib.el