diff options
author | Richard M. Stallman <rms@gnu.org> | 1999-09-03 18:44:39 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1999-09-03 18:44:39 +0000 |
commit | 0e0151535716525eef54bfbdc94aa4c9779f31e9 (patch) | |
tree | 63672fa85581bed41b5ebd5012688d645cdc9322 /src/frame.h | |
parent | 574a1a902e1166d94c0267bba737a419f22f449d (diff) | |
download | emacs-0e0151535716525eef54bfbdc94aa4c9779f31e9.tar.gz |
Do nothing if included a second time.
(enum output_method): Add mac_output frame type.
(union output_data): Add new alternative `mac'.
(FRAME_MAC_P): New macro.
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/frame.h b/src/frame.h index 3aca26d7534..6a4e62be3ea 100644 --- a/src/frame.h +++ b/src/frame.h @@ -1,3 +1,8 @@ +/* Don't multiply include: dispextern.h includes macterm.h which includes frame.h + some emacs source includes both dispextern.h and frame.h */ +#ifndef _XFRAME_H_ +#define _XFRAME_H_ + /* Define frame-object for GNU Emacs. Copyright (C) 1993, 1994 Free Software Foundation, Inc. @@ -39,7 +44,8 @@ enum output_method output_termcap, output_x_window, output_msdos_raw, - output_w32 + output_w32, + output_mac }; enum vertical_scroll_bar_type @@ -211,6 +217,7 @@ struct frame { struct x_output *x; struct w32_output *w32; + struct mac_output *mac; int nothing; } output_data; @@ -360,6 +367,7 @@ typedef struct frame *FRAME_PTR; #define FRAME_X_P(f) ((f)->output_method == output_x_window) #define FRAME_W32_P(f) ((f)->output_method == output_w32) #define FRAME_MSDOS_P(f) ((f)->output_method == output_msdos_raw) +#define FRAME_MAC_P(f) ((f)->output_method == output_mac) /* FRAME_WINDOW_P tests whether the frame is a window, and is defined to be the predicate for the window system being used. */ @@ -370,6 +378,9 @@ typedef struct frame *FRAME_PTR; #ifdef HAVE_NTGUI #define FRAME_WINDOW_P(f) FRAME_W32_P (f) #endif +#ifdef macintosh +#define FRAME_WINDOW_P(f) FRAME_MAC_P (f) +#endif #ifndef FRAME_WINDOW_P #define FRAME_WINDOW_P(f) (0) #endif @@ -723,3 +734,4 @@ extern Lisp_Object Vterminal_frame; ? make_float ((double) (Y) / CANON_Y_UNIT (F)) \ : make_number ((Y) / CANON_Y_UNIT (F))) +#endif /* not defined _FRAME_H_ */ |