aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-03-16 20:49:50 +0000
committerKim F. Storm2003-03-16 20:49:50 +0000
commit9c3f34b36879f0c3cacee35a951fcb6338b9812f (patch)
tree9ba0d497bd4757cbf00d3dbfec772de64a9b35c9 /src
parent750fc6732fa42527ceb2f0962856ed4bae656714 (diff)
downloademacs-9c3f34b36879f0c3cacee35a951fcb6338b9812f.tar.gz
emacs-9c3f34b36879f0c3cacee35a951fcb6338b9812f.zip
(FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for consolidation.
Diffstat (limited to 'src')
-rw-r--r--src/macterm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/macterm.h b/src/macterm.h
index 615666e0483..1884fa61c03 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -402,8 +402,12 @@ struct mac_output {
402 402
403typedef struct mac_output mac_output; 403typedef struct mac_output mac_output;
404 404
405/* Return the X output data for frame F. */
406#define FRAME_X_OUTPUT(f) ((f)->output_data.mac)
407
405/* Return the Mac window used for displaying data in frame F. */ 408/* Return the Mac window used for displaying data in frame F. */
406#define FRAME_MAC_WINDOW(f) ((f)->output_data.mac->mWP) 409#define FRAME_MAC_WINDOW(f) ((f)->output_data.mac->mWP)
410#define FRAME_X_WINDOW(f) ((f)->output_data.mac->mWP)
407 411
408#define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) 412#define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel)
409#define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel) 413#define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel)
@@ -426,6 +430,7 @@ typedef struct mac_output mac_output;
426 430
427/* This is the `Display *' which frame F is on. */ 431/* This is the `Display *' which frame F is on. */
428#define FRAME_MAC_DISPLAY(f) (0) 432#define FRAME_MAC_DISPLAY(f) (0)
433#define FRAME_X_DISPLAY(f) (0)
429 434
430/* This is the 'font_info *' which frame F has. */ 435/* This is the 'font_info *' which frame F has. */
431#define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table) 436#define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table)
@@ -648,3 +653,6 @@ struct scroll_bar {
648 653
649struct frame * check_x_frame (Lisp_Object); 654struct frame * check_x_frame (Lisp_Object);
650 655
656#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
657#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
658