]> git.eshelyaron.com Git - emacs.git/commit
Minor simplifications and doc for records
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Apr 2017 21:06:25 +0000 (14:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Apr 2017 21:07:54 +0000 (14:07 -0700)
commit82b9efc869dddcbd5677867b84b20ae155b5b9da
treec570068c6e5801726a2ea05474a3779bf5cd4fd6
parent12317ff4fb53f889a69a858a629df6beffacd051
Minor simplifications and doc for records

* doc/lispref/records.texi (Records): Mention size limit.
* etc/NEWS: Mention records.
* src/alloc.c (allocate_pseudovector, allocate_record):
Prefer 'PSEUDOVECTOR_SIZE_MASK' to its definiens.
(allocate_record): Check arg range here, not in callers, as this
simplifies the code.  Use allocate_vectorlike instead of
allocate_vector, to avoid duplicate runtime tests.
(Fmake_record, record): Don't mention PSEUDOVECTOR_SIZE_BITS in
the doc string, as it is not visible to the user.
(Fmake_record, record, Fcopy_record):
Prefer make_lisp_ptr to XSETVECTOR.
(record): Broaden memcpy to copy the type, too.
doc/lispref/records.texi
etc/NEWS
src/alloc.c