Mercurial > emacs
annotate src/msdos.h @ 13156:a398dbd2b945
Indentation change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 08 Oct 1995 19:38:53 +0000 |
parents | fb2bb16f1fc8 |
children | 74b4edb62cf0 |
rev | line source |
---|---|
5503 | 1 /* MS-DOS specific C utilities, interface. |
2 Copyright (C) 1993 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
10503
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
8 the Free Software Foundation; either version 2, or (at your option) |
5503 | 9 any later version. |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | |
9572 | 20 #ifndef _MSDOS_H_ |
21 #define _MSDOS_H_ | |
22 | |
5503 | 23 #include <dpmi.h> |
24 | |
25 int dos_ttraw (); | |
26 int dos_ttcooked (); | |
27 int getdefdir (int, char*); | |
28 void unixtodos_filename (char *); | |
29 void dostounix_filename (char *); | |
7822
17b96e349369
Add template for rootrelativepath.
Richard M. Stallman <rms@gnu.org>
parents:
7604
diff
changeset
|
30 char *rootrelativepath (char *); |
5503 | 31 void init_environment (); |
32 void internal_terminal_init (); | |
9572 | 33 #ifdef _stdio_h_ |
5503 | 34 int internal_flush (FILE *); |
35 #endif | |
36 void ctrl_break_func (_go32_dpmi_registers *); | |
37 void install_ctrl_break_check (); | |
38 | |
39 extern int have_mouse; | |
40 int mouse_init1 (); | |
41 void mouse_init (); | |
42 void mouse_on (); | |
43 void mouse_off (); | |
44 void mouse_moveto (int, int); | |
45 void mouse_check_moved (); | |
46 int mouse_pressed (int, int *, int *); | |
47 int mouse_released (int, int *, int *); | |
9572 | 48 |
49 #ifndef HAVE_X_WINDOWS | |
50 /* Dummy types. */ | |
51 typedef int XFontStruct; | |
52 typedef int GC; | |
53 typedef int Pixmap; | |
54 typedef int Display; | |
55 typedef int Window; | |
56 #define PIX_TYPE int | |
57 #define XDISPLAY | |
58 | |
59 /* This is a cut-down version of the one in xterm.h, which see. */ | |
60 struct x_display | |
61 { | |
62 int left_pos; | |
63 int top_pos; | |
64 int line_height; | |
65 PIX_TYPE background_pixel; | |
66 PIX_TYPE foreground_pixel; | |
67 XFontStruct *font; | |
68 struct face **param_faces; | |
69 int n_param_faces; | |
70 struct face **computed_faces; | |
71 int n_computed_faces; | |
72 int size_computed_faces; | |
73 }; | |
74 | |
75 extern struct x_display the_only_x_display; | |
76 extern Display *x_current_display; | |
77 | |
78 #define FRAME_PARAM_FACES(f) (the_only_x_display.param_faces) | |
79 #define FRAME_N_PARAM_FACES(f) (the_only_x_display.n_param_faces) | |
80 #define FRAME_DEFAULT_PARAM_FACE(f) (FRAME_PARAM_FACES (f)[0]) | |
81 #define FRAME_MODE_LINE_PARAM_FACE(f) (FRAME_PARAM_FACES (f)[1]) | |
82 #define FRAME_COMPUTED_FACES(f) (the_only_x_display.computed_faces) | |
83 #define FRAME_N_COMPUTED_FACES(f) (the_only_x_display.n_computed_faces) | |
84 #define FRAME_SIZE_COMPUTED_FACES(f) (the_only_x_display.size_computed_faces) | |
85 #define FRAME_DEFAULT_FACE(f) (the_only_x_display.computed_faces[0]) | |
86 #define FRAME_MODE_LINE_FACE(f) (the_only_x_display.computed_faces[1]) | |
87 #define FRAME_X_DISPLAY(f) ((Display *) 0) | |
88 #define FRAME_FOREGROUND_PIXEL(f) (the_only_x_display.foreground_pixel) | |
89 #define FRAME_BACKGROUND_PIXEL(f) (the_only_x_display.background_pixel) | |
90 #define FRAME_FONT(f) (the_only_x_display.font) | |
91 | |
92 #define XFreeGC (void) | |
93 #define same_size_fonts(foo,bar) (1) | |
94 #define unload_font(p1,p2) | |
95 #define unload_color(p1,p2) | |
96 #define x_destroy_bitmap(p1,p2) | |
97 #define load_pixmap(p1,p2,p3,p4) (0) | |
98 #define XGetGeometry(p1,p2,p3,p4,p5,p6,p7,p8,p9) | |
99 #define DisplayWidth(p1,p2) (the_only_frame.width) | |
100 #define DisplayHeight(p1,p2) (the_only_frame.height) | |
101 #define XMenuSetAEQ (void) | |
102 #define XMenuSetFreeze (void) | |
103 #define XMenuRecompute (void) | |
104 #define FONT_WIDTH(foo) 1 | |
105 /* Function `getcbrk' is the most harmless I can think of right now... */ | |
106 #define check_x if (FRAME_TERMCAP_P (bar)) error ("Not running under a windows system."); else getcbrk | |
10503
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
107 #define x_mouse_leave getcbrk |
9572 | 108 #define XM_FAILURE -1 |
109 #define XM_SUCCESS 1 | |
110 #define XM_NO_SELECT 2 | |
111 #define XM_IA_SELECT 3 | |
112 #define ButtonReleaseMask 0 | |
113 | |
114 typedef struct x_menu_struct | |
115 { | |
116 int count; | |
117 char **text; | |
118 struct x_menu_struct **submenu; | |
119 int *panenumber; /* Also used as enable. */ | |
120 int allocated; | |
121 int panecount; | |
122 int width; | |
123 } XMenu; | |
124 | |
10503
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
125 XMenu *XMenuCreate (Display *, Window, char *); |
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
126 int XMenuAddPane (Display *, XMenu *, char *, int); |
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
127 int XMenuAddSelection (Display *, XMenu *, int, int, char *, int); |
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
128 void XMenuLocate (Display *, XMenu *, int, int, int, int, |
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
129 int *, int *, int *, int *); |
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
130 int XMenuActivate (Display *, XMenu *, int *, int *, int, int, unsigned, char **); |
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
131 void XMenuDestroy (Display *, XMenu *); |
4d94f31dc555
(x_mouse_leave): Add neutralizing define.
Richard M. Stallman <rms@gnu.org>
parents:
9572
diff
changeset
|
132 |
9572 | 133 #endif /* not HAVE_X_WINDOWS */ |
134 | |
135 #endif /* not _MSDOS_H_ */ |