comparison src/m/next.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children bcdc7deadc19
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 /* Configuration file for the NeXT machine.
2 Copyright (C) 1990 Free Software Foundation, Inc.
3
4 This file is part of GNU Emacs.
5
6 GNU Emacs 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 2, or (at your option)
9 any later version.
10
11 GNU Emacs 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 XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 /* Synched up with: FSF 19.31. and Emacs for NeXTstep 4.1 */
22
23 /* Say this machine is a next if not previously defined */
24
25 #ifndef NeXT
26 #define NeXT
27 #endif
28
29 /* Define how to take a char and sign-extend into an int.
30 On machines where char is signed, this is a no-op. */
31
32 #define SIGN_EXTEND_CHAR(c) (c)
33
34 /* XINT must explicitly sign-extend */
35
36 #define EXPLICIT_SIGN_EXTEND
37
38 /* Data type of load average, as read out of kmem. */
39
40 #define LOAD_AVE_TYPE long
41
42 /* Convert that into an integer that is 100 for a load average of 1.0 */
43
44 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
45
46 /* Say that the text segment of a.out includes the header;
47 the header actually occupies the first few bytes of the text segment
48 and is counted in hdr.a_text. */
49
50 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
51
52 /* Mask for address bits within a memory segment */
53
54 #define SEGSIZ 0x20000
55 #define SEGMENT_MASK (SEGSIZ - 1)
56
57 #define HAVE_ALLOCA
58
59 #define SYSTEM_MALLOC
60
61 #define HAVE_UNIX_DOMAIN
62
63 #define LIB_X11_LIB -L/usr/lib/X11 -lX11
64
65 /* This avoids a problem in Xos.h when using co-Xist 3.01. */
66 #define X_NOT_POSIX
67
68 /* Conflicts in process.c between ioctl.h & tty.h use of t_foo fields */
69
70 #define NO_T_CHARS_DEFINES
71
72 /* Use our own unexec routines */
73
74 #define UNEXEC unexnext.o
75
76 /* We don't have a g library either, so override the -lg LIBS_DEBUG switch */
77
78 #define LIBS_DEBUG
79
80 /* We don't have a libgcc.a, so we can't let LIB_GCC default to -lgcc */
81
82 #define LIB_GCC
83
84 /* Link this program just by running cc. */
85 #define ORDINARY_LINK
86
87 /* start_of_text isn't actually used, so make it compile without error. */
88 #define TEXT_START 0
89 /* This seems to be right for end_of_text, but it may not be used anyway. */
90 #define TEXT_END get_etext ()
91 /* This seems to be right for end_of_data, but it may not be used anyway. */
92 #define DATA_END get_edata ()
93
94 /* Defining KERNEL_FILE causes lossage because sys/file.h
95 stupidly gets confused by it. */
96 #undef KERNEL_FILE
97
98 #define LD_SWITCH_MACHINE
99
100 /* #define environ _environ */
101
102 /* XEmacs change from Barry Warsaw. */
103 #ifndef NOT_C_CODE
104 /* this is only typedef'd in types.h if _POSIX_SOURCE is defined
105 * but the problem with that is that compiling with -posix links
106 * in -lposix instead of -lsys_s, and the latter defines some
107 * important NeXT AppKit symbols.
108 */
109 typedef unsigned short mode_t;
110 #endif /* ! NOT_C_CODE */
111
112 #ifdef hppa
113 /* The following are glommed from the hp9000s800.h file */
114
115 #define STACK_DIRECTION 1
116 #endif
117
118 /* Axel Seibert <seibert@leo.org> says the following is necessary due
119 to configure problems. */
120
121 #undef REL_ALLOC
122
123 #undef SYSV_SYSTEM_DIR
124 #undef NONSYSTEM_DIR_LIBRARY
125
126 #define signal_handler_t int
127 #define pid_t int
128
129 #undef HAVE_TERMIOS
130 #undef BSD_TERMIOS
131 #define NO_TERMIO
132 #undef HAVE_TERMIO
133 #undef HAVE_MMAP
134
135 #define TAB3 XTABS
136
137 #define C_OPTIMIZE_SWITCH -pipe
138
139 #undef HAVE_SETITIMER
140
141 #define ASSERT_VALID_POINTER(pnt) (assert ((((int) pnt) & 1) == 0))