summaryrefslogtreecommitdiff
path: root/src/mem-limits.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2002-07-24 02:07:21 +0000
committerKen Raeburn <raeburn@raeburn.org>2002-07-24 02:07:21 +0000
commitf456a2bcff2c242f113e1b243ec188d19c5155b1 (patch)
tree4f0869ad00f67117a0e48cbdbcd9565481ce1983 /src/mem-limits.h
parentd5e406c3edb4e1ae50b6665e6451043281173e28 (diff)
downloademacs-f456a2bcff2c242f113e1b243ec188d19c5155b1.tar.gz
(start_of_data): If DATA_START is defined, prefer
its value over other approaches.
Diffstat (limited to 'src/mem-limits.h')
-rw-r--r--src/mem-limits.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h
index 1028d7ff5ad..4a8771cf42e 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -79,12 +79,18 @@ extern POINTER start_of_data ();
#define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS)
#endif
+#ifdef DATA_START
+#define start_of_data() ((char *)DATA_START)
+#endif
+
#ifdef BSD_SYSTEM
#ifndef DATA_SEG_BITS
+#ifndef DATA_START
extern char etext;
#define start_of_data() &etext
#endif
#endif
+#endif
#else /* not emacs */
extern char etext;