aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-30 16:17:44 +0400
committerDmitry Antipov2013-08-30 16:17:44 +0400
commit9d7693d74c4ec73c01d03d990d552e1480ec2739 (patch)
tree9b3862361d8d0ca7ca8456321e8eda3e4ac5c54c /src/xterm.h
parent112798c18dbbb095a34ace257767ae6f57643468 (diff)
downloademacs-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.h22
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
410extern void select_visual (struct x_display_info *); 407extern void select_visual (struct x_display_info *);
411 408
412
413struct 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
923struct window;
924struct glyph_matrix;
925struct frame;
926struct input_event;
927struct face;
928struct image;
929
930/* From xselect.c. */ 916/* From xselect.c. */
931 917
932void x_handle_selection_notify (XSelectionEvent *); 918void x_handle_selection_notify (XSelectionEvent *);