]> git.eshelyaron.com Git - emacs.git/commit
Avoid writing to purespace
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 31 Dec 2015 01:59:40 +0000 (10:59 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 31 Dec 2015 01:59:40 +0000 (10:59 +0900)
commit47580e0d72f53c2fff23cb8edf1487da76e87744
treee81c698d019e12a680aed3c0867a7c04d49cc4af
parent0588be7ca658faf79bbff7ffcb7eb9f0e3fb8190
Avoid writing to purespace

* src/alloc.c (Fmake_string): Don't write to empty string contents.
(allocate_vector): Don't write to empty vector size.
* src/character.h (CHECK_CHARACTER_CAR, CHECK_CHARACTER_CDR):
Don't call unnecessary XSETCAR or XSETCDR.
* src/lisp.h (STRING_SET_UNIBYTE, STRING_SET_MULTIBYTE): Don't
write to empty string size_byte.
src/alloc.c
src/character.h
src/lisp.h