aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-08-14 02:29:05 +0000
committerJim Blandy1992-08-14 02:29:05 +0000
commitce4e9d43a44f46ff1f0f4c693dd1aa1bc1a4b74c (patch)
tree2cbe55f6df97ed27f5486724cdf875b02720868d /src
parent4b206065b98c3fd27294331fa14c3b718edc3d6f (diff)
downloademacs-ce4e9d43a44f46ff1f0f4c693dd1aa1bc1a4b74c.tar.gz
emacs-ce4e9d43a44f46ff1f0f4c693dd1aa1bc1a4b74c.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/frame.h46
1 files changed, 25 insertions, 21 deletions
diff --git a/src/frame.h b/src/frame.h
index da9722ab6bb..8b46e591a20 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -248,6 +248,10 @@ extern Lisp_Object Vterminal_frame;
248 248
249#define FRAME_PTR int 249#define FRAME_PTR int
250 250
251/* A frame we use to store all the data concerning the screen when we
252 don't have multiple frames. Remember, if you store any data in it
253 which needs to be protected from GC, you should staticpro that
254 element explicitly. */
251extern struct frame the_only_frame; 255extern struct frame the_only_frame;
252 256
253extern int selected_frame; 257extern int selected_frame;
@@ -266,32 +270,32 @@ extern int message_buf_print;
266#define FRAME_X_P(f) 0 270#define FRAME_X_P(f) 0
267#define FRAME_MINIBUF_ONLY_P(f) 0 271#define FRAME_MINIBUF_ONLY_P(f) 0
268#define FRAME_HAS_MINIBUF_P(f) 1 272#define FRAME_HAS_MINIBUF_P(f) 1
269#define FRAME_CURRENT_GLYPHS(f) the_only_frame.current_glyphs 273#define FRAME_CURRENT_GLYPHS(f) (the_only_frame.current_glyphs)
270#define FRAME_DESIRED_GLYPHS(f) the_only_frame.desired_glyphs 274#define FRAME_DESIRED_GLYPHS(f) (the_only_frame.desired_glyphs)
271#define FRAME_TEMP_GLYPHS(f) the_only_frame.temp_glyphs 275#define FRAME_TEMP_GLYPHS(f) (the_only_frame.temp_glyphs)
272#define FRAME_HEIGHT(f) the_only_frame.height 276#define FRAME_HEIGHT(f) (the_only_frame.height)
273#define FRAME_WIDTH(f) the_only_frame.width 277#define FRAME_WIDTH(f) (the_only_frame.width)
274#define FRAME_NEW_HEIGHT(f) the_only_frame.new_height 278#define FRAME_NEW_HEIGHT(f) (the_only_frame.new_height)
275#define FRAME_NEW_WIDTH(f) the_only_frame.new_width 279#define FRAME_NEW_WIDTH(f) (the_only_frame.new_width)
276#define FRAME_CURSOR_X(f) the_only_frame.cursor_x 280#define FRAME_CURSOR_X(f) (the_only_frame.cursor_x)
277#define FRAME_CURSOR_Y(f) the_only_frame.cursor_y 281#define FRAME_CURSOR_Y(f) (the_only_frame.cursor_y)
278#define FRAME_VISIBLE_P(f) 1 282#define FRAME_VISIBLE_P(f) 1
279#define SET_FRAME_GARBAGED(f) (frame_garbaged = 1) 283#define SET_FRAME_GARBAGED(f) (frame_garbaged = 1)
280#define FRAME_GARBAGED_P(f) frame_garbaged 284#define FRAME_GARBAGED_P(f) (frame_garbaged)
281#define FRAME_NO_SPLIT_P(f) 0 285#define FRAME_NO_SPLIT_P(f) 0
282#define FRAME_WANTS_MODELINE_P(f) 1 286#define FRAME_WANTS_MODELINE_P(f) 1
283#define FRAME_ICONIFIED_P(f) 0 287#define FRAME_ICONIFIED_P(f) 0
284#define FRAME_MINIBUF_WINDOW(f) minibuf_window 288#define FRAME_MINIBUF_WINDOW(f) (minibuf_window)
285#define FRAME_ROOT_WINDOW(f) the_only_frame.root_window 289#define FRAME_ROOT_WINDOW(f) (XWINDOW (minibuf_window)->prev)
286#define FRAME_SELECTED_WINDOW(f) selected_window 290#define FRAME_SELECTED_WINDOW(f) (selected_window)
287#define SET_GLYPHS_FRAME(glyphs,frame) 291#define SET_GLYPHS_FRAME(glyphs,frame) do ; while (0)
288#define FRAME_INSERT_COST(frame) the_only_frame.insert_line_cost 292#define FRAME_INSERT_COST(frame) (the_only_frame.insert_line_cost)
289#define FRAME_DELETE_COST(frame) the_only_frame.delete_line_cost 293#define FRAME_DELETE_COST(frame) (the_only_frame.delete_line_cost)
290#define FRAME_INSERTN_COST(frame) the_only_frame.insert_n_lines_cost 294#define FRAME_INSERTN_COST(frame) (the_only_frame.insert_n_lines_cost)
291#define FRAME_DELETEN_COST(frame) the_only_frame.delete_n_lines_cost 295#define FRAME_DELETEN_COST(frame) (the_only_frame.delete_n_lines_cost)
292#define FRAME_MESSAGE_BUF(f) the_only_frame.message_buf 296#define FRAME_MESSAGE_BUF(f) (the_only_frame.message_buf)
293#define FRAME_SCROLL_BOTTOM_VPOS(f) the_only_frame.scroll_bottom_vpos 297#define FRAME_SCROLL_BOTTOM_VPOS(f) (the_only_frame.scroll_bottom_vpos)
294#define FRAME_FOCUS_FRAME(f) 0 298#define FRAME_FOCUS_FRAME(f) (0)
295 299
296#define CHECK_FRAME(x, i) do; while (0) 300#define CHECK_FRAME(x, i) do; while (0)
297#define CHECK_LIVE_FRAME(x, y) do; while (0) 301#define CHECK_LIVE_FRAME(x, y) do; while (0)