Merge remote-tracking branch 'origin/master' into for-steve
[sxemacs] / src / m / next.h
1 /* Configuration file for the NeXT machine.
2    Copyright (C) 1990 Free Software Foundation, Inc.
3
4 This file is part of SXEmacs
5
6 SXEmacs is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 SXEmacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
18
19
20 /* Synched up with: FSF 19.31. and Emacs for NeXTstep 4.1 */
21
22 /* Say this machine is a next if not previously defined */
23
24 #ifndef NeXT
25 #define NeXT
26 #endif
27
28 /* Say that the text segment of a.out includes the header;
29    the header actually occupies the first few bytes of the text segment
30    and is counted in hdr.a_text.  */
31
32 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
33
34 /* Mask for address bits within a memory segment */
35
36 #define SEGSIZ 0x20000
37 #define SEGMENT_MASK (SEGSIZ - 1)
38
39 #define HAVE_UNIX_DOMAIN
40
41 #define LIB_X11_LIB "-L/usr/lib/X11 -lX11"
42
43 /* This avoids a problem in Xos.h when using co-Xist 3.01.  */
44 #define X_NOT_POSIX
45
46 /* Conflicts in process.c between ioctl.h & tty.h use of t_foo fields */
47
48 #define NO_T_CHARS_DEFINES
49
50 /* Use our own unexec routines */
51 /*
52  * everything is pdump now. --SY
53  * #define UNEXEC "unexnext.o"
54  */
55 #undef UNEXEC
56
57 /* We don't have a g library either, so override the -lg LIBS_DEBUG switch */
58
59 #define LIBS_DEBUG
60
61 /* We don't have a libgcc.a, so we can't let LIB_GCC default to -lgcc */
62
63 #define LIB_GCC
64
65 /* Link this program just by running cc.  */
66 #define ORDINARY_LINK
67
68 /* start_of_text isn't actually used, so make it compile without error.  */
69 #define TEXT_START 0
70 /* This seems to be right for end_of_text, but it may not be used anyway.  */
71 #define TEXT_END get_etext ()
72 /* This seems to be right for end_of_data, but it may not be used anyway.  */
73 #define DATA_END get_edata ()
74
75 /* Defining KERNEL_FILE causes lossage because sys/file.h
76    stupidly gets confused by it.  */
77 #undef KERNEL_FILE
78
79 #define LD_SWITCH_MACHINE
80
81 /* #define environ _environ */
82
83 /* XEmacs change from Barry Warsaw. */
84 #ifndef NOT_C_CODE
85 /* this is only typedef'd in types.h if _POSIX_SOURCE is defined
86  * but the problem with that is that compiling with -posix links
87  * in -lposix instead of -lsys_s, and the latter defines some
88  * important NeXT AppKit symbols.
89  */
90 typedef unsigned short mode_t;
91 #endif                          /* ! NOT_C_CODE */
92
93 #define ASSERT_VALID_POINTER(pnt) (assert ((((int) pnt) & 1) == 0))