Cleanup miscellaneous objects allocation and initialization.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 23 Jul 2012 11:15:43 +0000 (15:15 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 23 Jul 2012 11:15:43 +0000 (15:15 +0400)
commitd7a7fda3cc130edb8bc10af96d322d263afbb44a
treec7e8012e1b8ab313038ccd2dab1a2b39fa2c4bd6
parent5df1607869c5acff34382b5accf3332b1e72bc2a
Cleanup miscellaneous objects allocation and initialization.
* alloc.c (allocate_misc): Change to static.  Add argument to
specify the subtype.  Adjust comment and users.
(build_overlay): New function.
* buffer.c (copy_overlays, Fmake_overlay): Use it.
* lisp.h (struct Lisp_Overlay): Remove obsolete comment.
(allocate_misc): Remove prototype.
(build_overlay): Add prototype.
src/ChangeLog
src/alloc.c
src/buffer.c
src/lisp.h