|
|
1.1 root 1: /* m- file for gec63
2: Copyright (C) 1986 Free Software Foundation, Inc.
3:
4: This file is part of GNU Emacs.
5:
6: GNU Emacs is distributed in the hope that it will be useful,
7: but WITHOUT ANY WARRANTY. No author or distributor
8: accepts responsibility to anyone for the consequences of using it
9: or for whether it serves any particular purpose or works at all,
10: unless he says so in writing. Refer to the GNU Emacs General Public
11: License for full details.
12:
13: Everyone is granted permission to copy, modify and redistribute
14: GNU Emacs, but only under the conditions described in the
15: GNU Emacs General Public License. A copy of this license is
16: supposed to have been given to you along with GNU Emacs so you
17: can know your rights and responsibilities. It should be in a
18: file named COPYING. Among other things, the copyright notice
19: and this notice must be preserved on all copies. */
20:
21:
22: /* The following three symbols give information on
23: the size of various data types. */
24:
25: #define SHORTBITS 16 /* Number of bits in a short */
26:
27: #define INTBITS 32 /* Number of bits in an int */
28:
29: #define LONGBITS 32 /* Number of bits in a long */
30:
31: /* GEC63 is big-endian: lowest numbered byte is most significant. */
32:
33: #define BIG_ENDIAN
34:
35: /* Define how to take a char and sign-extend into an int.
36: On machines where char is signed, this is a no-op. */
37:
38: #define SIGN_EXTEND_CHAR(c) (((c)<<24)>>24)
39:
40: /* Say this machine is a 68000 */
41:
42: #define gec63
43:
44: /* Use an int to represent Lisp_Object */
45:
46: #define NO_UNION_TYPE
47:
48: /* GEC63 has alloca in the PW/ux63 library. */
49: #define LIB_STANDARD -lPW -lc
50: #define HAVE_ALLOCA
51:
52: /* Do not define LOAD_AVE_TYPE or LOAD_AVE_CVT
53: since there is no /dev/kmem */
54:
55: #undef ADDR_CORRECT(x)
56: #define NO_ARG_ARRAY
57:
58: #undef TERMCAP
59: #define TERMINFO
60:
61: /* Define sizes of portions of a Lisp_Object. */
62: #define VALBITS 22
63: #define GCTYPEBITS 5
64:
65: #define VALAMASK (((1<<VALBITS) - 1)| 0xF0000000L)
66:
67: #define XTYPE(a) ((enum Lisp_Type) (((a) >> VALBITS) & GCTYPEMASK))
68: #define XSETTYPE(a, b) ((a) = ((a) & VALAMASK) + ((int)(b) << VALBITS))
69:
70: #define XPNTR(a) ((a) & VALAMASK)
71: #define XSETPNTR(a, b) ((a) = ((a) & ~VALAMASK) + ((b) & VALAMASK))
72:
73: #define XSET(var, type, ptr) \
74: ((var) = ((int)(type) << VALBITS) + ((int) (ptr) & VALAMASK))
75:
76: /* Move some garbage-collector flag bits to different bit positions. */
77: #define ARRAY_MARK_FLAG (1 << 27)
78: #define DONT_COPY_FLAG (1 << 26)
79:
80: #define NO_REMAP
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.