annotate src/s/ia64.h @ 30578:705b94e152b1

(decode_coding_iso2022): More strict check for handling single shifting.
author Kenichi Handa <handa@m17n.org>
date Fri, 04 Aug 2000 02:05:39 +0000
parents e53905a0a16b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30576
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
1 /* machine description file for the IA-64 architecture.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
2 Copyright (C) 2000 Free Software Foundation, Inc.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
3 Contributed by David Mosberger <davidm@hpl.hp.com>
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
4
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
5 This file is part of GNU Emacs.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
6
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
7 GNU Emacs is free software; you can redistribute it and/or modify
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
9 the Free Software Foundation; either version 1, or (at your option)
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
10 any later version.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
11
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
15 GNU General Public License for more details.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
16
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
18 along with GNU Emacs; see the file COPYING. If not, write to
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
21
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
22 #define BITS_PER_LONG 64
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
23 #define BITS_PER_EMACS_INT 64
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
24
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
25 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
26 is the most significant byte. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
27
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
28 #undef WORDS_BIG_ENDIAN
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
29
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
30 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
31 group of arguments and treat it as an array of the arguments. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
32
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
33 #define NO_ARG_ARRAY
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
34
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
35 /* Define WORD_MACHINE if addresses and such have
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
36 to be corrected before they can be used as byte counts. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
37
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
38 /* #define WORD_MACHINE */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
39
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
40 /* Now define a symbol for the cpu type, if your compiler
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
41 does not define it automatically:
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
42 Ones defined so far include vax, m68000, ns16000, pyramid,
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
43 orion, tahoe, APOLLO and many others */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
44
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
45 /* __ia64__ defined automatically */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
46
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
47
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
48 /* Use type EMACS_INT rather than a union, to represent Lisp_Object */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
49 /* This is desirable for most machines. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
50
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
51 #define NO_UNION_TYPE
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
52
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
53 /* Define the type to use. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
54 #define EMACS_INT long
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
55 #define EMACS_UINT unsigned long
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
56 #define SPECIAL_EMACS_INT
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
57
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
58 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
59 the 24-bit bit field into an int. In other words, if bit fields
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
60 are always unsigned.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
61
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
62 If you use NO_UNION_TYPE, this flag does not matter. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
63
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
64 #define EXPLICIT_SIGN_EXTEND
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
65
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
66 /* Data type of load average, as read out of kmem. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
67
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
68 #define LOAD_AVE_TYPE long
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
69
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
70 /* Convert that into an integer that is 100 for a load average of 1.0 */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
71
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
72 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
73
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
74 /* Define CANNOT_DUMP on machines where unexec does not work.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
75 Then the function dump-emacs will not be defined
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
76 and temacs will do (load "loadup") automatically unless told otherwise. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
77 #if 0
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
78 #define CANNOT_DUMP
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
79 #endif
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
80
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
81 /* Define VIRT_ADDR_VARIES if the virtual addresses of
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
82 pure and impure space as loaded can vary, and even their
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
83 relative order cannot be relied on.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
84
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
85 Otherwise Emacs assumes that text space precedes data space,
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
86 numerically. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
87
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
88 /* #define VIRT_ADDR_VARIES */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
89
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
90 /* Define C_ALLOCA if this machine does not support a true alloca
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
91 and the one written in C should be used instead.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
92 Define HAVE_ALLOCA to say that the system provides a properly
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
93 working alloca function and it should be used.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
94 Define neither one if an assembler-language alloca
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
95 in the file alloca.s should be used. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
96
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
97 #define HAVE_ALLOCA
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
98
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
99 /* Define the following if GNU malloc and the relocating allocator do
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
100 not work together with X. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
101
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
102 /* #define SYSTEM_MALLOC */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
103
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
104 /* Define NO_REMAP if memory segmentation makes it not work well
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
105 to change the boundary between the text section and data section
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
106 when Emacs is dumped. If you define this, the preloaded Lisp
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
107 code will not be sharable; but that's better than failing completely. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
108
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
109 /* #define NO_REMAP */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
110
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
111 /* Some really obscure 4.2-based systems (like Sequent DYNIX) do not
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
112 support asynchronous I/O (using SIGIO) on sockets, even though it
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
113 works fine on tty's. If you have one of these systems, define the
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
114 following, and then use it in config.h (or elsewhere) to decide
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
115 when (not) to use SIGIO.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
116
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
117 You'd think this would go in an operating-system description file,
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
118 but since it only occurs on some, but not all, BSD systems, the
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
119 reasonable place to select for it is in the machine description
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
120 file. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
121
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
122 /* #define NO_SOCK_SIGIO */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
123
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
124 #ifdef __ELF__
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
125 #undef UNEXEC
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
126 #define UNEXEC unexelf.o
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
127 #endif
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
128
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
129 #define PNTR_COMPARISON_TYPE unsigned long
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
130
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
131 /* On the 64 bit architecture, we can use 60 bits for addresses */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
132
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
133 #define VALBITS 60
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
134
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
135 /* This definition of MARKBIT is necessary because of the comparison of
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
136 ARRAY_MARK_FLAG and MARKBIT in an #if in lisp.h, which cpp doesn't like. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
137
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
138 #define MARKBIT 0x8000000000000000L
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
139
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
140 /* Define XINT and XUINT so that they can take arguments of type int */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
141
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
142 #define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
143 #define XUINT(a) ((long) (a) & VALMASK)
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
144
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
145 /* Declare malloc and realloc in a way that is clean.
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
146 But not in makefiles! */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
147
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
148 #ifndef NOT_C_CODE
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
149 /* We need these because pointers are larger than the default ints. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
150 # if !defined(__NetBSD__) && !defined(__OpenBSD__)
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
151 # include <alloca.h>
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
152 # else
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
153 # include <stdlib.h>
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
154 # endif
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
155
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
156 /* Hack alert! For reasons unknown to mankind the string.h file insists
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
157 on defining bcopy etc. as taking char pointers as arguments. With
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
158 Emacs this produces an endless amount of warning which are harmless,
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
159 but tends to flood the real errors. This hack works around this problem
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
160 by not prototyping. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
161 #define bcopy string_h_bcopy
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
162 #define bzero string_h_bzero
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
163 #define bcmp string_h_bcmp
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
164 #include <string.h>
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
165 #undef bcopy
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
166 #undef bzero
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
167 #undef bcmp
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
168
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
169 /* We need to prototype these for the lib-src programs even if we don't
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
170 use the system malloc for the Emacs proper. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
171 #ifdef _MALLOC_INTERNAL
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
172 /* These declarations are designed to match the ones in gmalloc.c. */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
173 #if defined (__STDC__) && __STDC__
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
174 extern void *malloc (), *realloc (), *calloc ();
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
175 #else
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
176 extern char *malloc (), *realloc (), *calloc ();
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
177 #endif
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
178 #else /* not _MALLOC_INTERNAL */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
179 extern void *malloc (), *realloc (), *calloc ();
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
180 #endif /* not _MALLOC_INTERNAL */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
181
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
182 #ifdef REL_ALLOC
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
183 #ifndef _MALLOC_INTERNAL
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
184 /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
185 is allowed to prototype these as "void *" so we don't prototype in
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
186 that case. You're right: it stinks! */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
187 extern char *r_alloc (), *r_re_alloc ();
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
188 extern void r_alloc_free ();
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
189 #endif /* not _MALLOC_INTERNAL */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
190 #endif /* REL_ALLOC */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
191
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
192 #endif /* not NOT_C_CODE */
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
193
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
194 #define DATA_SEG_BITS 0x6000000000000000
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
195
e53905a0a16b *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
196 #define HAVE_TEXT_START