diff options
| author | Karl Heuer | 1995-01-31 01:53:55 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-01-31 01:53:55 +0000 |
| commit | 0d8b7055ea5d1d06446a12f2864b5d1dc793ebe9 (patch) | |
| tree | 7b23894ef0b56b0bfbc7ffdccd3b87d49bf94bd1 /src | |
| parent | a1b7a2ab661a5987dbf5ecaf57525b1c118437d3 (diff) | |
| download | emacs-0d8b7055ea5d1d06446a12f2864b5d1dc793ebe9.tar.gz emacs-0d8b7055ea5d1d06446a12f2864b5d1dc793ebe9.zip | |
[MULTI_PERDISPLAY] (get_perdisplay): Define this as a macro, for sources that
include this header.
[MULTI_PERDISPLAY] (get_perdisplay_macro): Internal macro version.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 5d40b1f3fa3..9b90e9536f7 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -305,6 +305,16 @@ extern struct x_display_info *x_display_info_for_display (); | |||
| 305 | extern struct x_display_info *x_display_info_for_name (); | 305 | extern struct x_display_info *x_display_info_for_name (); |
| 306 | 306 | ||
| 307 | extern struct x_display_info *x_term_init (); | 307 | extern struct x_display_info *x_term_init (); |
| 308 | |||
| 309 | #ifdef MULTI_PERDISPLAY | ||
| 310 | /* The perdisplay structure itself has to be accessible in files that don't | ||
| 311 | need to know about X. So we'll define get_perdisplay as a function to | ||
| 312 | retrieve that structure opaquely. But sources that include this header | ||
| 313 | will automatically get the macro version, and save a function call. */ | ||
| 314 | |||
| 315 | #define get_perdisplay_macro(f) (&(f)->display.x->display_info->perdisplay) | ||
| 316 | #define get_perdisplay(f) get_perdisplay_macro (f) | ||
| 317 | #endif | ||
| 308 | 318 | ||
| 309 | /* Each X frame object points to its own struct x_display object | 319 | /* Each X frame object points to its own struct x_display object |
| 310 | in the display.x field. The x_display structure contains all | 320 | in the display.x field. The x_display structure contains all |