summaryrefslogtreecommitdiff
path: root/lisp/jsonrpc.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-08-08 18:51:35 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-08-08 18:52:38 -0700
commit63a8f4cfd78b6fbf6d56cdeeb5df1f6d0688435c (patch)
treecf6f4b28b73f8311ecd37d72113f06bb3edc72f4 /lisp/jsonrpc.el
parent7eef590870a35008d55a04efcd76780b7668c3ec (diff)
downloademacs-63a8f4cfd78b6fbf6d56cdeeb5df1f6d0688435c.tar.gz
emacs-63a8f4cfd78b6fbf6d56cdeeb5df1f6d0688435c.tar.bz2
emacs-63a8f4cfd78b6fbf6d56cdeeb5df1f6d0688435c.zip
Minor pseudovector allocation cleanups
* src/alloc.c (VECTOR_BLOCK_SIZE, VECTOR_BLOCK_BYTES) (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX): Prefer enums to macros where either will do. (allocate_vector_from_block): Arg is ptrdiff_t, not size_t. Use eassume instead of eassert. (PSEUDOVEC_STRUCT): New macro, which verifies the already-existing assumption that the vector-like objects are small. (cleanup_vector): Use it. Use if-then-else systematically; this lets GCC do a bit better job. 2018-08-08 Paul Eggert <eggert@cs.ucla.edu> * src/alloc.c (VBLOCK_BYTES_MAX): Use vroundup_ct, not vroundup, so that can be used in static assertions.
Diffstat (limited to 'lisp/jsonrpc.el')
0 files changed, 0 insertions, 0 deletions