]> git.eshelyaron.com Git - emacs.git/commit
Use record_unwind_protect_ptr to avoid allocation
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Jun 2018 22:59:08 +0000 (15:59 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jun 2018 00:13:38 +0000 (17:13 -0700)
commit3f0a8a2e14669cf4a1f56e97f8b1299fced79796
treedd5b4d0154a5be7ee9a04b3fcfdaa6689935b56a
parent12fd59bba0b04fb6727f4fa54e3305a65fae1d44
Use record_unwind_protect_ptr to avoid allocation

* src/term.c (struct tty_pop_down_menu): New type.
(tty_pop_down_menu, tty_menu_show): Use it, along with
record_unwind_protect_ptr, to avoid allocating a Lisp_Misc.
* src/xmenu.c (struct pop_down_menu): New type.
(pop_down_menu, x_menu_show): Use it, likewise.
* src/xterm.c (x_cr_destroy, x_cr_export_frames):
Use record_unwind_protect_pointer to avoid possibly allocating
a Lisp_Misc.
src/term.c
src/xmenu.c
src/xterm.c