Mercurial > emacs
annotate src/m/hp9000s300.h @ 4081:da352b92ca90
(mouse-choose-completion): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 13 Jul 1993 21:33:17 +0000 |
parents | 7be0f0a02725 |
children | 7a33be8c3192 |
rev | line source |
---|---|
456 | 1 /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD. |
2 Copyright (C) 1985 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 | |
3699 | 8 the Free Software Foundation; either version 2, or (at your option) |
456 | 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 | |
20 | |
21 /* The following line tells the configuration script what sort of | |
22 operating system this machine is likely to run. | |
23 USUAL-OPSYS="note" | |
24 | |
25 NOTE-START | |
26 HP 9000 series 200 or 300 (-machine=hp9000s300) | |
27 | |
28 These machines are 68000-series CPUs running HP-UX | |
29 (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah. | |
30 | |
31 If you're running HP-UX, specify `-opsystem=hpux'. | |
1112 | 32 If you're running BSD, specify `-opsystem=bsd4-3'. |
456 | 33 NOTE-END */ |
34 | |
1128 | 35 /* I don't understand why we have to do this at all! -JimB */ |
36 #if 0 | |
37 | |
1112 | 38 /* Do this here at the top of the file; including sys/wait.h may |
39 include <endian.h>, which defines BIG_ENDIAN, which will conflict | |
40 with our definition of BIG_ENDIAN if we do this at the bottom. */ | |
41 #ifndef NOT_C_CODE | |
42 #ifndef NO_SHORTNAMES | |
43 #include <sys/wait.h> | |
44 #define WAITTYPE int | |
45 #endif | |
46 #define WRETCODE(w) (((w) >> 8) & 0377) | |
47 #endif | |
48 | |
1128 | 49 #endif |
50 | |
1112 | 51 /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */ |
456 | 52 |
53 /* #define NOMULTIPLEJOBS */ | |
54 | |
55 /* Define this symbol if you are running a version of HP-UX | |
56 which predates version 6.01 */ | |
57 | |
58 /* #define HPUX_5 */ | |
59 | |
60 /* The following three symbols give information on | |
61 the size of various data types. */ | |
62 | |
63 #define SHORTBITS 16 /* Number of bits in a short */ | |
64 | |
65 #define INTBITS 32 /* Number of bits in an int */ | |
66 | |
67 #define LONGBITS 32 /* Number of bits in a long */ | |
68 | |
69 /* Define BIG_ENDIAN iff lowest-numbered byte in a word | |
70 is the most significant byte. */ | |
1128 | 71 /* Under BSD, <endian.h> defines this to be 4321; rather than fight with it, |
72 we'll just give in. Compatibility, akido style. */ | |
1112 | 73 #ifndef BIG_ENDIAN |
1128 | 74 #define BIG_ENDIAN 4321 |
1112 | 75 #endif |
456 | 76 |
77 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a | |
78 * group of arguments and treat it as an array of the arguments. */ | |
79 | |
80 /* #define NO_ARG_ARRAY */ | |
81 | |
82 /* Define WORD_MACHINE if addresses and such have | |
83 * to be corrected before they can be used as byte counts. */ | |
84 | |
85 /* #define WORD_MACHINE */ | |
86 | |
87 /* Now define a symbol for the cpu type, if your compiler | |
88 does not define it automatically. */ | |
89 | |
90 #ifndef hp9000s300 | |
91 #define hp9000s300 | |
92 #endif | |
93 | |
94 /* Use type int rather than a union, to represent Lisp_Object */ | |
95 /* This is desirable for most machines. */ | |
96 | |
97 #define NO_UNION_TYPE | |
98 | |
99 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend | |
100 the 24-bit bit field into an int. In other words, if bit fields | |
101 are always unsigned. | |
102 | |
103 If you use NO_UNION_TYPE, this flag does not matter. */ | |
104 | |
105 #define EXPLICIT_SIGN_EXTEND | |
106 | |
107 /* Define CANNOT_DUMP on machines where unexec does not work. | |
108 Then the function dump-emacs will not be defined | |
109 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
110 | |
111 /* #define CANNOT_DUMP */ | |
112 | |
113 /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
114 pure and impure space as loaded can vary, and even their | |
115 relative order cannot be relied on. | |
116 | |
117 Otherwise Emacs assumes that text space precedes data space, | |
118 numerically. */ | |
119 | |
120 /* #define VIRT_ADDR_VARIES */ | |
121 | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
1128
diff
changeset
|
122 /* For University of Utah 4.3bsd implementation on HP300s. |
456 | 123 The #ifndef __GNUC__ definitions are required for the "standard" cc, |
124 a very old, brain-dead version of PCC. */ | |
125 | |
126 #ifdef BSD4_3 | |
1112 | 127 |
456 | 128 /* Tell crt0.c that this is an ordinary 68020. */ |
129 #undef hp9000s300 | |
1112 | 130 #define m68000 |
131 | |
456 | 132 #define CRT0_DUMMIES bogus_a6, |
133 | |
134 #define HAVE_ALLOCA | |
135 | |
136 #ifndef __GNUC__ | |
137 #define LIBS_DEBUG /* don't have -lg that works */ | |
138 #define C_DEBUG_SWITCH /* don't support -g */ | |
139 #endif | |
140 | |
141 #undef LOAD_AVE_TYPE | |
142 #undef LOAD_AVE_CVT | |
143 #define LOAD_AVE_TYPE long | |
144 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0)) | |
145 | |
146 #endif /* BSD4_3 */ | |
147 | |
148 #ifndef BSD4_3 | |
149 /* The following definitions are for HPUX only. */ | |
150 | |
151 /* The symbol in the kernel where the load average is found | |
152 is named _avenrun on this machine. */ | |
153 | |
154 #define LDAV_SYMBOL "_avenrun" | |
155 | |
156 /* Data type of load average, as read out of kmem. */ | |
157 | |
158 #define LOAD_AVE_TYPE double | |
159 | |
160 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
161 | |
162 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) | |
163 | |
164 /* This library is needed with -g, on the 200/300 only. */ | |
165 | |
166 #if !defined(__GNUC__) || defined(__HPUX_ASM__) | |
167 #define LIBS_DEBUG /usr/lib/end.o | |
168 #endif | |
169 | |
170 /* The symbol FIONREAD is defined, but the feature does not work | |
171 on the 200/300. */ | |
172 | |
173 #define BROKEN_FIONREAD | |
174 | |
175 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined | |
176 even though symbolic links do not exist. | |
177 Make sure our conditionals based on S_IFLNK are not confused. | |
178 | |
179 Here we assume that stat.h is included before config.h | |
180 so that we can override it here. | |
181 | |
182 Version 6 of HP-UX has symbolic links. */ | |
183 | |
184 #ifdef HPUX_5 | |
185 #undef S_IFLNK | |
186 #endif | |
187 | |
188 /* Define the BSTRING functions in terms of the sysV functions. | |
1112 | 189 Version 6 of HP-UX supplies these in the BSD library, |
190 but that library has reported bugs in `signal'. */ | |
456 | 191 |
1112 | 192 /* #ifdef HPUX_5 */ |
456 | 193 #define bcopy(a,b,s) memcpy (b,a,s) |
194 #define bzero(a,s) memset (a,0,s) | |
195 #define bcmp memcmp | |
1112 | 196 /* #endif */ |
456 | 197 |
198 /* On USG systems these have different names. | |
1112 | 199 Version 6 of HP-UX supplies these in the BSD library, |
200 which we currently want to avoid using. */ | |
456 | 201 |
1112 | 202 /* #ifdef HPUX_5 */ |
456 | 203 #define index strchr |
204 #define rindex strrchr | |
1112 | 205 /* #endif */ |
456 | 206 |
207 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300 | |
208 * Emacs to run on both 68010 and 68020 based hp-ux's. | |
209 * | |
210 * Define OLD_HP_ASSEMBLER if you have an ancient assembler | |
211 * | |
212 * Define HPUX_68010 if you are using the new assembler but | |
213 * compiling for a s200 (upgraded) or s310. 68010 based | |
214 * processor without 68881. | |
215 */ | |
216 | |
217 /* These switches increase the size of some internal C compiler tables. | |
218 They are required for compiling the X11 interface files. */ | |
219 | |
220 #ifndef HPUX_5 | |
221 #ifndef __GNUC__ | |
222 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000 | |
223 #endif | |
224 #endif | |
225 | |
226 /* Define NEED_BSDTTY if you have such. */ | |
227 | |
228 #ifndef NOMULTIPLEJOBS | |
229 #define NEED_BSDTTY | |
230 #endif | |
231 | |
1112 | 232 #endif /* not BSD4_3 */ |