annotate src/m/next.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents a86b2b5e0111
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Configuration file for the NeXT machine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1990 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.31. and Emacs for NeXTstep 4.1 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* Say this machine is a next if not previously defined */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 #ifndef NeXT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 #define NeXT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
29 /* Define how to take a char and sign-extend into an int.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
30 On machines where char is signed, this is a no-op. */
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
31
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
32 #define SIGN_EXTEND_CHAR(c) (c)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
33
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
34 /* XINT must explicitly sign-extend */
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
35
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
36 #define EXPLICIT_SIGN_EXTEND
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 400
diff changeset
37
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 /* Say that the text segment of a.out includes the header;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 the header actually occupies the first few bytes of the text segment
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 and is counted in hdr.a_text. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 /* Mask for address bits within a memory segment */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 #define SEGSIZ 0x20000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #define SEGMENT_MASK (SEGSIZ - 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #define HAVE_UNIX_DOMAIN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 78
diff changeset
51 #define LIB_X11_LIB "-L/usr/lib/X11 -lX11"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 /* This avoids a problem in Xos.h when using co-Xist 3.01. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #define X_NOT_POSIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 /* Conflicts in process.c between ioctl.h & tty.h use of t_foo fields */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #define NO_T_CHARS_DEFINES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 /* Use our own unexec routines */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 78
diff changeset
62 #define UNEXEC "unexnext.o"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 /* We don't have a g library either, so override the -lg LIBS_DEBUG switch */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #define LIBS_DEBUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 /* We don't have a libgcc.a, so we can't let LIB_GCC default to -lgcc */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 #define LIB_GCC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 /* Link this program just by running cc. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 #define ORDINARY_LINK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 /* start_of_text isn't actually used, so make it compile without error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #define TEXT_START 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 /* This seems to be right for end_of_text, but it may not be used anyway. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #define TEXT_END get_etext ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 /* This seems to be right for end_of_data, but it may not be used anyway. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #define DATA_END get_edata ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 /* Defining KERNEL_FILE causes lossage because sys/file.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 stupidly gets confused by it. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 #undef KERNEL_FILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 #define LD_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 /* #define environ _environ */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* XEmacs change from Barry Warsaw. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #ifndef NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 /* this is only typedef'd in types.h if _POSIX_SOURCE is defined
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 * but the problem with that is that compiling with -posix links
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 * in -lposix instead of -lsys_s, and the latter defines some
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 * important NeXT AppKit symbols.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 typedef unsigned short mode_t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 #endif /* ! NOT_C_CODE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 #define ASSERT_VALID_POINTER(pnt) (assert ((((int) pnt) & 1) == 0))