Mercurial > emacs
annotate src/m/pmax.h @ 87881:9145a42d68ae
(outline-up-heading): Fix check for top level to
avoid infinite looping in hide-other.
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Mon, 21 Jan 2008 19:48:10 +0000 |
parents | f27b84de02cf |
children | 606f2d163a64 7e5b32f86a4c |
rev | line source |
---|---|
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
1 /* Machine description file for DEC MIPS machines. |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
2 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
3 Copyright (C) 1992, 1999, 2001, 2002, 2003, 2004, |
79755 | 4 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
5 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
6 This file is part of GNU Emacs. |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
7 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
8 GNU Emacs is free software; you can redistribute it and/or modify |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
9 it under the terms of the GNU General Public License as published by |
78258
6aba169c4b1f
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75935
diff
changeset
|
10 the Free Software Foundation; either version 3, or (at your option) |
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
11 any later version. |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
12 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
13 GNU Emacs is distributed in the hope that it will be useful, |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
16 GNU General Public License for more details. |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
17 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
18 You should have received a copy of the GNU General Public License |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
19 along with GNU Emacs; see the file COPYING. If not, write to |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
21 Boston, MA 02110-1301, USA. */ |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
22 |
1113 | 23 |
456 | 24 #include "mips.h" |
25 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45959
diff
changeset
|
26 /* The following line tells the configuration script what sort of |
456 | 27 operating system this machine is likely to run. |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45959
diff
changeset
|
28 USUAL-OPSYS="note" |
1113 | 29 |
30 NOTE-START | |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
31 The operating system would be either osf1, ultrix, or NetBSD. |
1113 | 32 NOTE-END */ |
456 | 33 |
45959
b8ede252555b
(START_FILES): Define START_FILES for NetBSD and
Pavel Janík <Pavel@Janik.cz>
parents:
44601
diff
changeset
|
34 #ifndef __MIPSEB__ |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
35 #undef WORDS_BIG_ENDIAN |
45959
b8ede252555b
(START_FILES): Define START_FILES for NetBSD and
Pavel Janík <Pavel@Janik.cz>
parents:
44601
diff
changeset
|
36 #endif |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
37 #if defined (__NetBSD__) |
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
38 #define BROKEN_NOCOMBRELOC |
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
39 #else |
1113 | 40 #undef LIB_STANDARD |
41 #undef START_FILES | |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
42 #endif |
1113 | 43 #undef COFF |
44 #undef TERMINFO | |
45 #define MAIL_USE_FLOCK | |
46 #define HAVE_UNION_WAIT | |
456 | 47 |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
48 |
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
49 #ifdef MACH |
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
50 #define START_FILES pre-crt0.o /usr/lib/crt0.o |
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
51 #else |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
52 #if !defined (__NetBSD__) |
456 | 53 /* This line starts being needed with ultrix 4.0. */ |
1113 | 54 /* You must delete it for version 3.1. */ |
456 | 55 #define START_FILES pre-crt0.o /usr/lib/cmplrs/cc/crt0.o |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
56 #endif |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
57 #endif |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
58 |
456 | 59 /* Supposedly the following will overcome a kernel bug. */ |
60 #undef LD_SWITCH_MACHINE | |
61 #undef DATA_START | |
62 #define DATA_START 0x10000000 | |
63 #define DATA_SEG_BITS 0x10000000 | |
64 | |
1582
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
65 #if 0 |
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
66 /* I don't see any such conflict in Ultrix 4.2, 4.2a, or 4.3. And |
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
67 the relocating allocator is a real win. -JimB */ |
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
68 |
456 | 69 /* In Ultrix 4.1, XvmsAlloc.o in libX11.a seems to insist |
70 on defining malloc itself. This should avoid conflicting with it. */ | |
71 #define SYSTEM_MALLOC | |
1582
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
72 #endif |
1113 | 73 |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
74 /* Override what mips.h says about this. */ |
27923
325eddf4eb21
(START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: Don't define.
Gerd Moellmann <gerd@gnu.org>
parents:
19795
diff
changeset
|
75 #if !defined (__NetBSD__) |
1113 | 76 #undef LINKER |
27923
325eddf4eb21
(START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: Don't define.
Gerd Moellmann <gerd@gnu.org>
parents:
19795
diff
changeset
|
77 #endif |
1113 | 78 |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
79 #ifdef ultrix |
1113 | 80 /* Ultrix 4.2 (perhaps also 4.1) implements O_NONBLOCK |
81 but it doesn't work right; | |
82 and it causes hanging in read_process_output. */ | |
83 #define BROKEN_O_NONBLOCK | |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
84 #endif |
1113 | 85 |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
86 #ifndef __NetBSD__ |
3571
6c1a1b79536c
* config.h.in (HAVE_LIBDNET): New macro, to be defined by
Jim Blandy <jimb@redhat.com>
parents:
3406
diff
changeset
|
87 /* mcc@timessqr.gc.cuny.edu says this makes Emacs work with DECnet. */ |
6c1a1b79536c
* config.h.in (HAVE_LIBDNET): New macro, to be defined by
Jim Blandy <jimb@redhat.com>
parents:
3406
diff
changeset
|
88 #ifdef HAVE_LIBDNET |
3396
56ffd7d79f05
(LIBS_MACHINE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
1582
diff
changeset
|
89 #define LIBS_MACHINE -ldnet |
3571
6c1a1b79536c
* config.h.in (HAVE_LIBDNET): New macro, to be defined by
Jim Blandy <jimb@redhat.com>
parents:
3406
diff
changeset
|
90 #endif |
3403 | 91 |
3406
829998469d86
(KERNEL_FILE): New override definition.
Richard M. Stallman <rms@gnu.org>
parents:
3403
diff
changeset
|
92 /* mcc@timessqr.gc.cuny.edu says it is /vmunix on Ultrix 4.2a. */ |
3403 | 93 #undef KERNEL_FILE |
3406
829998469d86
(KERNEL_FILE): New override definition.
Richard M. Stallman <rms@gnu.org>
parents:
3403
diff
changeset
|
94 #define KERNEL_FILE "/vmunix" |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
95 #endif |
4001
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
96 |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
97 #ifdef ultrix |
4001
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
98 /* Jim Wilson writes: |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
99 [...] The X11 include files that Dec distributes with Ultrix |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
100 are bogus. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
101 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
102 When __STDC__ is defined (which is true with gcc), the X11 include files |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
103 try to define prototypes. The prototypes however use types which haven't |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
104 been defined yet, and thus we get syntax/parse errors. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
105 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
106 You can not fix this by changing the include files, because the prototypes |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
107 create circular dependencies, in particular Xutil.h depends on types defined |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
108 in Xlib.h, and Xlib.h depends on types defined in Xutil.h. So, no matter |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
109 which order you try to include them in, it will still fail. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
110 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
111 Compiling with -DNeedFunctionPrototypes=0 will solve the problem by |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
112 directly inhibiting the bad prototypes. This could perhaps just be put in |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
113 an a Ultrix configuration file. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
114 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
115 Using the MIT X11 distribution instead of the one provided by Dec will |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
116 also solve the problem, but I doubt you can convince everyone to do this. */ |
6889
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
117 /* Addendum: the MIT X11 distribution neglects to define certain symbols |
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
118 when NeedFunctionPrototypes is 0, but still tries to use them when |
14036 | 119 NeedVarargsPrototypes is 1 (which is its default value). So if we're |
6889
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
120 going to disable non-variadic prototypes, we also need to disable |
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
121 variadic prototypes. --kwzh@gnu.ai.mit.edu */ |
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
122 #define C_SWITCH_X_MACHINE -DNeedFunctionPrototypes=0 -DNeedVarargsPrototypes=0 |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
123 #endif |
5256
cd8db400928f
(SET_CHILD_PTY_PGRP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4001
diff
changeset
|
124 |
cd8db400928f
(SET_CHILD_PTY_PGRP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4001
diff
changeset
|
125 /* Enable a fix in process.c. */ |
cd8db400928f
(SET_CHILD_PTY_PGRP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4001
diff
changeset
|
126 #define SET_CHILD_PTY_PGRP |
52401 | 127 |
128 /* arch-tag: 45d5070e-d2b7-479f-b336-3fd497c36e15 | |
129 (do not change this comment) */ |