]> git.eshelyaron.com Git - emacs.git/commit
Tune pseudovector allocation assuming Qnil == 0
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 16 Jan 2015 08:42:24 +0000 (11:42 +0300)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 16 Jan 2015 08:42:24 +0000 (11:42 +0300)
commit3b48f99542d822c0647334524035e93f4a094358
tree8d743237c2a211fca50dee6d93cb58a11a976d68
parent0ecb1eb988d25d3511e11ac39e05550cec57dc3f
Tune pseudovector allocation assuming Qnil == 0

* alloc.c (allocate_pseudovector): Use memset for both
Lisp_Objects and regular slots.  Add zerolen arg.
* lisp.h (allocate_pseudovector): Adjust prototype.
(ALLOCATE_PSEUDOVECTOR): Adjust user.
(ALLOCATE_ZEROED_PSEUDOVECTOR): New macro.
(allocate_hash_table, allocate_window, allocate_frame)
(allocate_process, allocate_terminal): Remove prototypes.
* fns.c (allocate_hash_table): Now static here.
* frame.c (allocate_frame):
* process.c (allocate_process):
* terminal.c (allocate_terminal):
* window.c (allocate_window): Now static here.
Use ALLOCATE_ZEROED_PSEUDOVECTOR.  Add comment.
src/ChangeLog
src/alloc.c
src/fns.c
src/font.c
src/frame.c
src/lisp.h
src/process.c
src/terminal.c
src/window.c