aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-04-21 12:32:54 -0700
committerDan Nicolaescu2010-04-21 12:32:54 -0700
commit56bae7c7b7947084b7bd71e54b322a73d9f887af (patch)
tree2ed4d086fad5d526be34d5a4270bb1baf61eb762 /src
parent31a01b90454f04d0b1733532bea5d9325e4762ff (diff)
downloademacs-56bae7c7b7947084b7bd71e54b322a73d9f887af.tar.gz
emacs-56bae7c7b7947084b7bd71e54b322a73d9f887af.zip
Clean up HP-UX files.
* m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS) (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT) (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ... * s/hpux10-20.h: ... to the only user, here.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/m/hp800.h52
-rw-r--r--src/s/hpux10-20.h45
3 files changed, 53 insertions, 52 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index acab6a89e49..c0b17d0d867 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Clean up HP-UX files.
4 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
6 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7 * s/hpux10-20.h: ... to the only user, here.
8
12010-04-21 Eli Zaretskii <eliz@gnu.org> 92010-04-21 Eli Zaretskii <eliz@gnu.org>
2 10
3 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't 11 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
diff --git a/src/m/hp800.h b/src/m/hp800.h
index d95da6643ab..0712a2c3309 100644
--- a/src/m/hp800.h
+++ b/src/m/hp800.h
@@ -40,58 +40,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
40 40
41#define EXPLICIT_SIGN_EXTEND 41#define EXPLICIT_SIGN_EXTEND
42 42
43
44/* Stuff for just HPUX. */
45
46#if defined (__hpux)
47
48/* Define NO_REMAP if memory segmentation makes it not work well
49 to change the boundary between the text section and data section
50 when Emacs is dumped. If you define this, the preloaded Lisp
51 code will not be sharable; but that's better than failing completely. */
52
53#define NO_REMAP
54
55/* Define VIRT_ADDR_VARIES if the virtual addresses of
56 pure and impure space as loaded can vary, and even their
57 relative order cannot be relied on.
58
59 Otherwise Emacs assumes that text space precedes data space,
60 numerically. */
61
62#define VIRT_ADDR_VARIES
63
64/* the data segment on this machine always starts at address 0x40000000. */
65
66#define DATA_SEG_BITS 0x40000000
67
68#define DATA_START 0x40000000
69#define TEXT_START 0x00000000
70
71/* Data type of load average, as read out of kmem. */
72
73#define LOAD_AVE_TYPE double
74
75/* Convert that into an integer that is 100 for a load average of 1.0 */
76
77#define LOAD_AVE_CVT(x) ((int) (x * 100.0))
78
79/* The symbol in the kernel where the load average is found
80 is named _avenrun. At this time there are two major flavors
81 of hp-ux (there is the s800 and s300 (s200) flavors). The
82 differences are thusly moved to the corresponding machine description file.
83*/
84
85/* no underscore please */
86#define LDAV_SYMBOL "avenrun"
87
88/* On USG systems these have different names. */
89
90#define index strchr
91#define rindex strrchr
92
93#endif /* __hpux */
94
95/* Systems with GCC don't need to lose. */ 43/* Systems with GCC don't need to lose. */
96#ifdef __NetBSD__ 44#ifdef __NetBSD__
97# ifdef __GNUC__ 45# ifdef __GNUC__
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index e670951fecc..c5dba525d64 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -168,5 +168,50 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
168/* otherwise sigunblock wont be defined */ 168/* otherwise sigunblock wont be defined */
169#define POSIX_SIGNALS 169#define POSIX_SIGNALS
170 170
171/* Define NO_REMAP if memory segmentation makes it not work well
172 to change the boundary between the text section and data section
173 when Emacs is dumped. If you define this, the preloaded Lisp
174 code will not be sharable; but that's better than failing completely. */
175
176#define NO_REMAP
177
178/* Define VIRT_ADDR_VARIES if the virtual addresses of
179 pure and impure space as loaded can vary, and even their
180 relative order cannot be relied on.
181
182 Otherwise Emacs assumes that text space precedes data space,
183 numerically. */
184
185#define VIRT_ADDR_VARIES
186
187/* the data segment on this machine always starts at address 0x40000000. */
188
189#define DATA_SEG_BITS 0x40000000
190
191#define DATA_START 0x40000000
192#define TEXT_START 0x00000000
193
194/* Data type of load average, as read out of kmem. */
195
196#define LOAD_AVE_TYPE double
197
198/* Convert that into an integer that is 100 for a load average of 1.0 */
199
200#define LOAD_AVE_CVT(x) ((int) (x * 100.0))
201
202/* The symbol in the kernel where the load average is found
203 is named _avenrun. At this time there are two major flavors
204 of hp-ux (there is the s800 and s300 (s200) flavors). The
205 differences are thusly moved to the corresponding machine description file.
206*/
207
208/* no underscore please */
209#define LDAV_SYMBOL "avenrun"
210
211/* On USG systems these have different names. */
212
213#define index strchr
214#define rindex strrchr
215
171/* arch-tag: 8d8dcbf1-ca9b-48a1-94be-b750de18a5c6 216/* arch-tag: 8d8dcbf1-ca9b-48a1-94be-b750de18a5c6
172 (do not change this comment) */ 217 (do not change this comment) */