annotate src/m/ibmrt.h @ 85574:6b689f2a0bdc

Move variable definitions before use. (pr-menu-char-width, pr-menu-char-height): Pacify byte compiler.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 23 Oct 2007 02:45:55 +0000
parents 49b363c28dce
children f27b84de02cf 424b655804ca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 44601
diff changeset
1 /* RTPC machine dependent defines
75227
e90d04cd455a Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68651
diff changeset
2 Copyright (C) 1986, 2001, 2002, 2003, 2004, 2005,
e90d04cd455a Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68651
diff changeset
3 2006, 2007 Free Software Foundation, Inc.
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5 This file is part of GNU Emacs.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 GNU Emacs is free software; you can redistribute it and/or modify
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 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: 75227
diff changeset
9 the Free Software Foundation; either version 3, or (at your option)
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10 any later version.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15 GNU General Public License for more details.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 along with GNU Emacs; see the file COPYING. If not, write to
64083
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
20 Boston, MA 02110-1301, USA. */
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 44601
diff changeset
23 /* The following line tells the configuration script what sort of
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 operating system this machine is likely to run.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 USUAL-OPSYS="bsd4-2" */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26
78499
49b363c28dce Replace `iff' in comments.
Glenn Morris <rgm@gnu.org>
parents: 78258
diff changeset
27 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
9095
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
28 is the most significant byte. */
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
29
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
30 #define WORDS_BIG_ENDIAN
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
31
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33 * group of arguments and treat it as an array of the arguments. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35 #define NO_ARG_ARRAY
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37 /* Define WORD_MACHINE if addresses and such have
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38 * to be corrected before they can be used as byte counts. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40 #define WORD_MACHINE
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42 /* Now define a symbol for the cpu type, if your compiler
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43 does not define it automatically. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45 #define ibmrt
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 #define romp /* unfortunately old include files are hanging around. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 /* Use type int rather than a union, to represent Lisp_Object */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 /* This is desirable for most machines. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 #define NO_UNION_TYPE
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
10362
f145d62266f6 (VALBITS, GCTYPEBITS): Deleted; default is better.
Karl Heuer <kwzh@gnu.org>
parents: 9095
diff changeset
54 the bit field into an int. In other words, if bit fields
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 are always unsigned.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57 If you use NO_UNION_TYPE, this flag does not matter. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 #define EXPLICIT_SIGN_EXTEND
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 /* Data type of load average, as read out of kmem. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 #define LOAD_AVE_TYPE double /* For AIS (sysV) */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65 /* Convert that into an integer that is 100 for a load average of 1.0 */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
66
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
67 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0)
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
68
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
69 /* Define CANNOT_DUMP on machines where unexec does not work.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
70 Then the function dump-emacs will not be defined
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
71 and temacs will do (load "loadup") automatically unless told otherwise. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
72
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
73 /* #define CANNOT_DUMP */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
74
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
75 /* Define VIRT_ADDR_VARIES if the virtual addresses of
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
76 pure and impure space as loaded can vary, and even their
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
77 relative order cannot be relied on.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
78
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
79 Otherwise Emacs assumes that text space precedes data space,
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
80 numerically. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
81
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
82 #undef VIRT_ADDR_VARIES
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
83
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
84 /* The data segment in this machine starts at a fixed address.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
85 An address of data cannot be stored correctly in a Lisp object;
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
86 we always lose the high bits. We must tell XPNTR to add them back. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
87
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
88 #define DATA_SEG_BITS 0x10000000
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
89 #define DATA_START 0x10000000
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
90
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
91 /* The text segment always starts at a fixed address.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
92 This way we don't need to have a label _start defined. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
93 #define TEXT_START 0
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
94
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
95 /* Taking a pointer to a char casting it as int pointer */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
96 /* and then taking the int which the int pointer points to */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
97 /* is practically guaranteed to give erroneous results */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
98
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
99 #define NEED_ERRNO
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
100
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
101 #define SKTPAIR
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103 /* BSD has BSTRING. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
104
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
105 #define BSTRING
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
106
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
107 /* Special switches to give the C compiler. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
108
3244
dc032025eb62 (C_SWITCH_MACHINE): Define only if not __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 750
diff changeset
109 #ifndef __GNUC__
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
110 #define C_SWITCH_MACHINE -Dalloca=_Alloca
3244
dc032025eb62 (C_SWITCH_MACHINE): Define only if not __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 750
diff changeset
111 #endif
446
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
112
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
113 /* Don't attempt to relabel some of the data as text when dumping.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
114 It does not work because their virtual addresses are not consecutive.
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
115 This enables us to use the standard crt0.o. */
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
116
76b7a95526d3 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
117 #define NO_REMAP
3246
8accc5c6f29f (HAVE_FTIME): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3244
diff changeset
118
3247
eab748cfcf49 (EMACS_BITMAP_FILES): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3246
diff changeset
119 /* Use the bitmap files that come with Emacs. */
eab748cfcf49 (EMACS_BITMAP_FILES): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3246
diff changeset
120 #define EMACS_BITMAP_FILES
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
121
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
122 /* arch-tag: 89aa7e7d-593e-432c-966a-3db6aa2ad665
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
123 (do not change this comment) */