aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-22 20:08:32 +0000
committerRichard M. Stallman1997-06-22 20:08:32 +0000
commit6b2797406826346ad2f3dfaeb1837d602e844bb9 (patch)
tree2c45d2407ab7434ec053407b944ebb00d29a1264 /src
parent326e87d25cab2a13ff23191635388fb4c9b2ea74 (diff)
downloademacs-6b2797406826346ad2f3dfaeb1837d602e844bb9.tar.gz
emacs-6b2797406826346ad2f3dfaeb1837d602e844bb9.zip
Initial revision
Diffstat (limited to 'src')
-rw-r--r--src/m/news-r6.h65
-rw-r--r--src/s/newsos6.h6
2 files changed, 71 insertions, 0 deletions
diff --git a/src/m/news-r6.h b/src/m/news-r6.h
new file mode 100644
index 00000000000..dbdb66c287c
--- /dev/null
+++ b/src/m/news-r6.h
@@ -0,0 +1,65 @@
1/* news-risc6.h is for the "RISC News", OS version 6. */
2/* This is in the public domain. */
3
4/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
5 * group of arguments and treat it as an array of the arguments. */
6
7#define NO_ARG_ARRAY
8
9/* Use type int rather than a union, to represent Lisp_Object */
10/* This is desirable for most machines. */
11
12#define NO_UNION_TYPE
13
14/* Data type of load average, as read out of kmem. */
15
16#define LOAD_AVE_TYPE long
17
18/* Convert that into an integer that is 100 for a load average of 1.0 */
19
20#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0)
21
22/* Define C_ALLOCA if this machine does not support a true alloca
23 and the one written in C should be used instead.
24 Define HAVE_ALLOCA to say that the system provides a properly
25 working alloca function and it should be used.
26 Define neither one if an assembler-language alloca
27 in the file alloca.s should be used. */
28
29#define HAVE_ALLOCA
30
31/* Define NO_REMAP if memory segmentation makes it not work well
32 to change the boundary between the text section and data section
33 when Emacs is dumped. If you define this, the preloaded Lisp
34 code will not be sharable; but that's better than failing completely. */
35
36#define NO_REMAP
37
38/* Alter some of the options used when linking. */
39
40/*#define C_DEBUG_SWITCH -g*/
41#define C_DEBUG_SWITCH -O -Olimit 2000
42#ifdef __GNUC__
43#define C_OPTIMIZE_SWITCH -O
44#define LD_SWITCH_MACHINE -g -Xlinker -D -Xlinker 800000
45#else /* !__GNUC__ */
46/*#define LD_SWITCH_MACHINE -D 800000 -g*/
47#define LD_SWITCH_MACHINE -D 800000
48#endif /* !__GNUC__ */
49#define LIBS_MACHINE -lmld
50#define LIBS_TERMCAP -lcurses
51
52/* The standard definitions of these macros would work ok,
53 but these are faster because the constants are short. */
54
55#define XUINT(a) (((unsigned)(a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))
56
57#define XSET(var, type, ptr) \
58 ((var) = \
59 ((int)(type) << VALBITS) \
60 + (((unsigned) (ptr) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS)))
61
62#define XUNMARK(a) \
63 ((a) = \
64 (((unsigned)(a) << (BITS_PER_INT-GCTYPEBITS-VALBITS)) \
65 >> (BITS_PER_INT-GCTYPEBITS-VALBITS)))
diff --git a/src/s/newsos6.h b/src/s/newsos6.h
new file mode 100644
index 00000000000..d4e67f7e4cf
--- /dev/null
+++ b/src/s/newsos6.h
@@ -0,0 +1,6 @@
1/* Definitions file for GNU Emacs running on Sony's NEWS-OS 6.x */
2
3#include "usg5-4-2.h"
4
5#define NEWSOS6
6#define HAVE_TEXT_START