summaryrefslogtreecommitdiff
path: root/src/m
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-04-10 18:11:41 +0000
committerRichard M. Stallman <rms@gnu.org>1995-04-10 18:11:41 +0000
commit02ca86afc7ec77cb98b22a78060bd7626ec170d3 (patch)
tree4b54166974ecc3eb48043006346c146e8198f158 /src/m
parentd232c27c01f033415a2d0759f24e0aaa5a9a7316 (diff)
downloademacs-02ca86afc7ec77cb98b22a78060bd7626ec170d3.tar.gz
#define SPECIAL_EMACS_INT
Include alloca.h, string.h here. (malloc. realloc, xmalloc, xrealloc): Declarations moved from s/osf1.h.
Diffstat (limited to 'src/m')
-rw-r--r--src/m/alpha.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/m/alpha.h b/src/m/alpha.h
index d1f9b9a9372..6d33ed3c5cc 100644
--- a/src/m/alpha.h
+++ b/src/m/alpha.h
@@ -68,6 +68,7 @@ NOTE-END
/* Define the type to use. */
#define EMACS_INT long
#define EMACS_UINT unsigned long
+#define SPECIAL_EMACS_INT
/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
the 24-bit bit field into an int. In other words, if bit fields
@@ -187,3 +188,16 @@ NOTE-END
/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
#define XPNTR(a) XUINT (a)
+
+/* Declare malloc and realloc in a way that is clean.
+ But not in makefiles! */
+
+#ifndef NOT_C_CODE
+#ifndef THIS_IS_YMAKEFILE
+/* We need these because pointers are larger than the default ints. */
+#include <alloca.h>
+#include <string.h>
+extern void *malloc (), *realloc ();
+extern long *xmalloc (), *xrealloc ();
+#endif
+#endif