# HG changeset patch
# User Karl Heuer <kwzh@gnu.org>
# Date 791517235 0
# Node ID ec47b0eee1db6de24b214d9390790f43352e8d51
# Parent  ae8199d40762f065eda035e4fcbc607b9bdb35bb
[MULTI_PERDISPLAY] (get_perdisplay): Define this as a macro, for sources that
include this header.
[MULTI_PERDISPLAY] (get_perdisplay_macro): Internal macro version.

diff -r ae8199d40762 -r ec47b0eee1db src/xterm.h
--- a/src/xterm.h	Tue Jan 31 01:53:12 1995 +0000
+++ b/src/xterm.h	Tue Jan 31 01:53:55 1995 +0000
@@ -305,6 +305,16 @@
 extern struct x_display_info *x_display_info_for_name ();
 
 extern struct x_display_info *x_term_init ();
+
+#ifdef MULTI_PERDISPLAY
+/* The perdisplay structure itself has to be accessible in files that don't
+   need to know about X.  So we'll define get_perdisplay as a function to
+   retrieve that structure opaquely.  But sources that include this header
+   will automatically get the macro version, and save a function call.  */
+
+#define get_perdisplay_macro(f) (&(f)->display.x->display_info->perdisplay)
+#define get_perdisplay(f) get_perdisplay_macro (f)
+#endif
 
 /* Each X frame object points to its own struct x_display object
    in the display.x field.  The x_display structure contains all