From 0e0151535716525eef54bfbdc94aa4c9779f31e9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 3 Sep 1999 18:44:39 +0000 Subject: [PATCH] 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. --- src/frame.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/frame.h b/src/frame.h index 3aca26d753..6a4e62be3e 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_ */ -- 2.20.1