diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2014-09-18 15:34:24 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2014-09-18 15:34:24 +0400 |
commit | 3cab7dd46f43dfb3131a08d7d9fc5c05f221c454 (patch) | |
tree | 9f3a11de853f9b84e754e87d568bd6500a5bc24a /src/frame.h | |
parent | e8be4f442baaf84a0d1c9e39b573a77ea9cda908 (diff) | |
download | emacs-3cab7dd46f43dfb3131a08d7d9fc5c05f221c454.tar.gz |
More and more stack-allocated Lisp objects if USE_LOCAL_ALLOCATORS.
* lisp.h (local_list4) [USE_LOCAL_ALLOCATORS]: New macro.
[!USE_LOCAL_ALLOCATORS]: Fall back to regular list4.
* frame.h (FRAME_PARAMETER): New macro.
* dispnew.c (init_display):
* fontset.c (Fset_fontset_font):
* frame.c (x_default_parameter):
* xfaces.c (set_font_frame_param, Finternal_merge_in_global_face):
* xfns.c (x_default_scroll_bar_color_parameter)
(x_default_font_parameter, x_create_tip_frame): Use it.
* editfns.c (Fpropertize): Use local_cons.
* process.c (status_message): Use build_local_string.
* xfont.c (xfont_open): Use make_local_string.
* xdisp.c (build_desired_tool_bar_string): Use local_list4.
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index 947ba6dccd9..0ba3e3712f6 100644 --- a/src/frame.h +++ b/src/frame.h @@ -1060,6 +1060,11 @@ default_pixels_per_inch_y (void) } \ } while (false) +/* Handy macro to construct an argument to Fmodify_frame_parameters. */ + +#define FRAME_PARAMETER(parameter, value) \ + local_list1 (scoped_cons (parameter, value)) + /* False means there are no visible garbaged frames. */ extern bool frame_garbaged; |