]> git.eshelyaron.com Git - emacs.git/commit
Some convenient bits to deal with Lisp_Save_Values.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 15 Jan 2013 08:38:07 +0000 (12:38 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 15 Jan 2013 08:38:07 +0000 (12:38 +0400)
commit1b971ac155006504b6b1c2688199747f976723af
tree0e5f4dc8243cec3591ce8ee659b5babc0a6639f9
parentcb9c0a53bc4a6d67f10d4674472b2884a71852c8
Some convenient bits to deal with Lisp_Save_Values.
* lisp.h (XSAVE_OBJECT): New macro to extract saved objects.
(allocate_misc): Remove prototype.
(format_save_value): New prototype.
* alloc.c (allocate_misc): Revert back to static.
(format_save_value): New function to build Lisp_Save_Value
object with the specified internal structure.
(make_save_value): Reimplement using format_save_value.
* editfns.c (save_excursion_save): Use format_save_value.
(save_excursion_restore): Use XSAVE_OBJECT.
src/ChangeLog
src/alloc.c
src/editfns.c
src/lisp.h