diff options
| author | Dmitry Antipov | 2013-08-30 16:17:44 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-30 16:17:44 +0400 |
| commit | 9d7693d74c4ec73c01d03d990d552e1480ec2739 (patch) | |
| tree | 9b3862361d8d0ca7ca8456321e8eda3e4ac5c54c /src/xterm.h | |
| parent | 112798c18dbbb095a34ace257767ae6f57643468 (diff) | |
| download | emacs-9d7693d74c4ec73c01d03d990d552e1480ec2739.tar.gz emacs-9d7693d74c4ec73c01d03d990d552e1480ec2739.zip | |
Minor cleanup to avoid forward declarations.
* coding.h (struct ccl_spec): Remove forward declaration.
* composite.h (toplevel): Include font.h.
(struct composition_it, struct face, struct font_metrics):
Remove forward declaration.
* dispextern.h (struct image, struct atimer): Likewise.
* emacsgtkfixed.h (struct frame): Likewise.
* emacsgtkfixed.c (toplevel): Reorder headers and drop stdio.h.
* font.h (struct font_driver, struct font, struct glyph_string)
(struct face): Remove forward declaration.
* fontset.h (struct face, struct font): Likewise.
* frame.h (toplevel): Style cleanup.
(enum output_method): Move to...
* termhooks.h (enum output_method): ...here.
(struct glyph, struct frame, struct ns_display_info)
(struct x_display_info, struct w32_display_info):
Remove forward declaration.
* xterm.h (toplevel): Include termhooks.h.
(struct font, struct window, struct glyph_matrix, struct frame)
(struct input_event, struct face, struct image): Remove forward
declaration.
* gtkutil.h (struct _widget_value): Likewise.
* keyboard.h (toplevel): Include termhooks.h.
(struct input_event): Remove forward declaration.
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/xterm.h b/src/xterm.h index 26f6095d727..39e40002d4e 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -20,8 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #ifndef XTERM_H | 20 | #ifndef XTERM_H |
| 21 | #define XTERM_H | 21 | #define XTERM_H |
| 22 | 22 | ||
| 23 | #include "dispextern.h" | ||
| 24 | |||
| 25 | #include <X11/Xlib.h> | 23 | #include <X11/Xlib.h> |
| 26 | #include <X11/cursorfont.h> | 24 | #include <X11/cursorfont.h> |
| 27 | 25 | ||
| @@ -73,14 +71,13 @@ typedef GtkWidget *xt_or_gtk_widget; | |||
| 73 | #define USE_GTK_TOOLTIP | 71 | #define USE_GTK_TOOLTIP |
| 74 | #endif | 72 | #endif |
| 75 | 73 | ||
| 76 | |||
| 77 | /* Bookkeeping to distinguish X versions. */ | ||
| 78 | |||
| 79 | |||
| 80 | #ifdef HAVE_X_I18N | 74 | #ifdef HAVE_X_I18N |
| 81 | #include <X11/Xlocale.h> | 75 | #include <X11/Xlocale.h> |
| 82 | #endif | 76 | #endif |
| 83 | 77 | ||
| 78 | #include "dispextern.h" | ||
| 79 | #include "termhooks.h" | ||
| 80 | |||
| 84 | #define BLACK_PIX_DEFAULT(f) BlackPixel (FRAME_X_DISPLAY (f), \ | 81 | #define BLACK_PIX_DEFAULT(f) BlackPixel (FRAME_X_DISPLAY (f), \ |
| 85 | XScreenNumberOfScreen (FRAME_X_SCREEN (f))) | 82 | XScreenNumberOfScreen (FRAME_X_SCREEN (f))) |
| 86 | #define WHITE_PIX_DEFAULT(f) WhitePixel (FRAME_X_DISPLAY (f), \ | 83 | #define WHITE_PIX_DEFAULT(f) WhitePixel (FRAME_X_DISPLAY (f), \ |
| @@ -409,9 +406,6 @@ extern bool x_display_ok (const char *); | |||
| 409 | 406 | ||
| 410 | extern void select_visual (struct x_display_info *); | 407 | extern void select_visual (struct x_display_info *); |
| 411 | 408 | ||
| 412 | |||
| 413 | struct font; | ||
| 414 | |||
| 415 | /* Each X frame object points to its own struct x_output object | 409 | /* Each X frame object points to its own struct x_output object |
| 416 | in the output_data.x field. The x_output structure contains | 410 | in the output_data.x field. The x_output structure contains |
| 417 | the information that is specific to X windows. */ | 411 | the information that is specific to X windows. */ |
| @@ -919,14 +913,6 @@ struct selection_input_event | |||
| 919 | #define SELECTION_EVENT_TIME(eventp) \ | 913 | #define SELECTION_EVENT_TIME(eventp) \ |
| 920 | (((struct selection_input_event *) (eventp))->time) | 914 | (((struct selection_input_event *) (eventp))->time) |
| 921 | 915 | ||
| 922 | |||
| 923 | struct window; | ||
| 924 | struct glyph_matrix; | ||
| 925 | struct frame; | ||
| 926 | struct input_event; | ||
| 927 | struct face; | ||
| 928 | struct image; | ||
| 929 | |||
| 930 | /* From xselect.c. */ | 916 | /* From xselect.c. */ |
| 931 | 917 | ||
| 932 | void x_handle_selection_notify (XSelectionEvent *); | 918 | void x_handle_selection_notify (XSelectionEvent *); |