aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-08-29 02:15:08 +0000
committerJim Blandy1992-08-29 02:15:08 +0000
commitd2729198c624d75c459f51ec3464e6781769dcc7 (patch)
treebb9e99dddf283407d63317a3db9ec9945037a336 /src
parentbd3073920fe7bf841a155480e3a77a1030bacfa8 (diff)
downloademacs-d2729198c624d75c459f51ec3464e6781769dcc7.tar.gz
emacs-d2729198c624d75c459f51ec3464e6781769dcc7.zip
entered into RCS
Diffstat (limited to 'src')
-rw-r--r--src/s/usg5-3.h23
-rw-r--r--src/xterm.h25
2 files changed, 38 insertions, 10 deletions
diff --git a/src/s/usg5-3.h b/src/s/usg5-3.h
index 305718d2e76..a4f7deccf52 100644
--- a/src/s/usg5-3.h
+++ b/src/s/usg5-3.h
@@ -27,6 +27,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
27 27
28#define USG5 28#define USG5
29 29
30#define USG5_3
31
30/* SYSTEM_TYPE should indicate the kind of system you are using. 32/* SYSTEM_TYPE should indicate the kind of system you are using.
31 It sets the Lisp variable system-type. */ 33 It sets the Lisp variable system-type. */
32 34
@@ -63,12 +65,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
63 65
64/* 66/*
65 * Define HAVE_SELECT if the system supports the `select' system call. 67 * Define HAVE_SELECT if the system supports the `select' system call.
66 * SVr3.2 X ports include an emulation.
67 */ 68 */
68 69
70/* SVr3.2 ports of X include an emulation of select in the libraries. */
69#ifdef HAVE_X_WINDOWS 71#ifdef HAVE_X_WINDOWS
70#define HAVE_SELECT 72#define HAVE_SELECT
71#endif /* HAVE_X_WINDOWS */ 73#endif
72 74
73/* 75/*
74 * Define HAVE_PTYS if the system supports pty devices. 76 * Define HAVE_PTYS if the system supports pty devices.
@@ -164,7 +166,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
164#define _setjmp setjmp 166#define _setjmp setjmp
165#define _longjmp longjmp 167#define _longjmp longjmp
166 168
167/* On USG systems the system calls are interruptable by signals 169/* On USG systems the system calls are interruptible by signals
168 that the user program has elected to catch. Thus the system call 170 that the user program has elected to catch. Thus the system call
169 must be retried in these cases. To handle this without massive 171 must be retried in these cases. To handle this without massive
170 changes in the source code, we remap the standard system call names 172 changes in the source code, we remap the standard system call names
@@ -181,7 +183,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
181#define INTERRUPTIBLE_IO 183#define INTERRUPTIBLE_IO
182 184
183/* On USG systems these have different names */ 185/* On USG systems these have different names */
184
185#define index strchr 186#define index strchr
186#define rindex strrchr 187#define rindex strrchr
187 188
@@ -199,6 +200,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
199 200
200#define TERMINFO 201#define TERMINFO
201 202
203/* Some variants have TIOCGETC, but the structures to go with it
204 are not declared. */
205
206#define BROKEN_TIOCGETC
207
202/* AT&T SVr3 X wants to be linked with shared libraries */ 208/* AT&T SVr3 X wants to be linked with shared libraries */
203 209
204#define LIB_X11_LIB -lX11_s 210#define LIB_X11_LIB -lX11_s
@@ -206,12 +212,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
206/* X needs to talk on the network, so search the network library. */ 212/* X needs to talk on the network, so search the network library. */
207 213
208#define LIBX10_SYSTEM -lnsl_s 214#define LIBX10_SYSTEM -lnsl_s
209#define LIBX11_SYSTEM -lnls -lnsl_s -lpt -lc_s 215#define LIBX11_SYSTEM -lnsl -lnsl_s -lpt -lc_s
210
211/* Some variants have TIOCGETC, but the structures to go with it
212 are not declared. */
213 216
214#define BROKEN_TIOCGETC 217/* The docs for system V/386 suggest v.3 has sigpause,
218 so let's give it a try. */
219#define HAVE_SYSV_SIGPAUSE
215 220
216/* Some variants have TIOCGWINSZ, but the structures to go with it 221/* Some variants have TIOCGWINSZ, but the structures to go with it
217 are not declared. */ 222 are not declared. */
diff --git a/src/xterm.h b/src/xterm.h
index 3adc4dc3572..a6e7975d24c 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -41,7 +41,26 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
41 41
42#ifdef HAVE_X11 42#ifdef HAVE_X11
43 43
44/* It turns out that we can auto-detect whether we're being compiled 44/* HAVE_X11R4 is defined if we have the features of X11R4. It should
45 be defined when we're using X11R5, since X11R5 has the features of
46 X11R4. If, in the future, we find we need more of these flags
47 (HAVE_X11R5, for example), code should always be written to test
48 the most recent flag first:
49
50 #ifdef HAVE_X11R5
51 ...
52 #elif HAVE_X11R4
53 ...
54 #elif HAVE_X11
55 ...
56 #endif
57
58 If you ever find yourself writing a "#ifdef HAVE_FOO" clause that
59 looks a lot like another one, consider moving the text into a macro
60 whose definition is configuration-dependent, but whose usage is
61 universal - like the stuff in systime.h.
62
63 It turns out that we can auto-detect whether we're being compiled
45 with X11R3 or X11R4 by looking for the flag macros for R4 structure 64 with X11R3 or X11R4 by looking for the flag macros for R4 structure
46 members that R3 doesn't have. */ 65 members that R3 doesn't have. */
47#ifdef PBaseSize 66#ifdef PBaseSize
@@ -333,6 +352,10 @@ struct x_display
333 to the mask as we go. */ 352 to the mask as we go. */
334 XWMHints wm_hints; 353 XWMHints wm_hints;
335}; 354};
355
356/* Return the window associated with the frame F. */
357#define FRAME_X_WINDOW(f) ((f)->display.x->window_desc)
358
336 359
337/* When X windows are used, a glyf may be a 16 bit unsigned datum. 360/* When X windows are used, a glyf may be a 16 bit unsigned datum.
338 The high order byte is the face number and is used as an index 361 The high order byte is the face number and is used as an index