diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-07-04 10:38:02 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-07-04 10:38:02 -0400 |
commit | ee28be33a535e41c74f3a4d5c0f3878e44366942 (patch) | |
tree | aea01076d95159b7559ec34cd47acd9245f46a7b /lisp/emacs-lisp | |
parent | 1a9746debdc8965edd84d27537ef9c55511ea04e (diff) | |
download | emacs-ee28be33a535e41c74f3a4d5c0f3878e44366942.tar.gz emacs-ee28be33a535e41c74f3a4d5c0f3878e44366942.tar.bz2 emacs-ee28be33a535e41c74f3a4d5c0f3878e44366942.zip |
Turn VECTOR_FREE_LIST_FLAG into PVEC_FREE.
* src/lisp.h (enum pvec_type): Use fewer bits.
(PSEUDOVECTOR_SIZE_BITS): New constant.
(PSEUDOVECTOR_SIZE_MASK, PVEC_TYPE_MASK): Use it.
(XSETPVECTYPESIZE, XSETTYPED_PSEUDOVECTOR, DEFUN): Adapt code to
change in pvec_type.
(PSEUDOVECTOR_TYPEP): New macro.
(TYPED_PSEUDOVECTORP): Use it.
* src/fns.c (internal_equal): Adapt code to extract pvectype.
* src/emacs.c (gdb_pvec_type): Update type.
* src/alloc.c (PSEUDOVECTOR_NBYTES): New macro.
(VECTOR_FREE_LIST_SIZE_MASK): Remove (=> PSEUDOVECTOR_SIZE_MASK).
(VECTOR_FREE_LIST_FLAG): Remove (=> PVEC_FREE).
(SETUP_ON_FREE_LIST): Use XSETPVECTYPESIZE.
(sweep_vectors): Use it. Use local var `total_bytes' instead of
abusing vector->header.next.nbytes.
(live_vector_p): Use PVEC_TYPE.
(mark_object): Adapt code to extract pvectype. Use switch.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions