summaryrefslogtreecommitdiff
path: root/src/m
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-05-29 06:35:55 +0000
committerKarl Heuer <kwzh@gnu.org>1995-05-29 06:35:55 +0000
commit32ce19d0bdcf29aa864097ea97eb8125ef6087d2 (patch)
tree7c430307172ae773bcf3f8f6e1760d075b448681 /src/m
parent05cdf3511d99fcfb6410d439f254a0dd80f85df2 (diff)
downloademacs-32ce19d0bdcf29aa864097ea97eb8125ef6087d2.tar.gz
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
(r_alloc, r_re_alloc, r_alloc_free) [REL_ALLOC, !_MALLOC_INTERNAL, !NOT_C_CODE]: Prototype.
Diffstat (limited to 'src/m')
-rw-r--r--src/m/alpha.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/m/alpha.h b/src/m/alpha.h
index 47b0cdcc1bf..2f4d5101c39 100644
--- a/src/m/alpha.h
+++ b/src/m/alpha.h
@@ -111,7 +111,15 @@ NOTE-END
#define HAVE_ALLOCA
/* GNU malloc and the relocating allocator do not work together
- with X. */
+ with X. [Who wrote that?] */
+
+/* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the
+ system and the gnu malloc system work with "alpha-dec-osf3.0" and
+ "alpha-dec-osf3.2". */
+
+/* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both
+ mallocs work with "alpha-dec-osf2.0", but I daren't break anything
+ right now. Feel free to play if you want. */
#define SYSTEM_MALLOC
@@ -154,9 +162,12 @@ NOTE-END
#define ORDINARY_LINK
+#ifndef __GNUC__
+/* This apparently is for the system ld as opposed to Gnu ld. */
#ifdef OSF1
#define LD_SWITCH_MACHINE -non_shared
#endif
+#endif
#define LIBS_DEBUG
#define START_FILES pre-crt0.o
@@ -210,7 +221,21 @@ NOTE-END
#undef bzero
#undef bcmp
+/* We need to prototype these for the lib-src programs even if we don't
+ use the system malloc for the Emacs proper. */
extern void *malloc (), *realloc ();
+
extern long *xmalloc (), *xrealloc ();
-#endif
-#endif
+
+#ifdef REL_ALLOC
+#ifndef _MALLOC_INTERNAL
+/* "char *" because ralloc.c defines it that way. gmalloc.c thinks it
+ is allowed to prototype these as "void *" so we don't prototype in
+ that case. You're right: it stinks! */
+extern char *r_alloc (), *r_re_alloc ();
+extern void r_alloc_free ();
+#endif /* not _MALLOC_INTERNAL */
+#endif /* REL_ALLOC */
+
+#endif /* not THIS_IS_YMAKEFILE */
+#endif /* not NOT_C_CODE */