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)
commit1ef9534c1f0d8aa68c40d7128e1259592bea02b7
tree9e7c97f392e46ecc50cf76fb35dae0dc0e661df2
parent11274026e034205e7426063d216fcd00ceefbc02
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