changeset 1393:d2ae5897e43c

[!emacs]: Don't define POINTER, SIZE or NULL. (start_of_data): Define as macro, if !emacs. (EXCEEDS_LISP_PTR): Renamed from EXCEEDS_ELISP_PTR.
author Richard M. Stallman <rms@gnu.org>
date Sun, 11 Oct 1992 20:40:05 +0000
parents ad64a94cd81c
children 3f3934ca2df6
files src/mem-limits.h
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/mem-limits.h	Sun Oct 11 20:39:15 1992 +0000
+++ b/src/mem-limits.h	Sun Oct 11 20:40:05 1992 +0000
@@ -26,6 +26,7 @@
 #include <sys/resource.h>
 #endif /* BSD4_2 */
 
+#ifdef emacs
 /* The important properties of this type are that 1) it's a pointer, and
    2) arithmetic on it should work as if the size of the object pointed
    to has a size of 1.  */
@@ -42,9 +43,8 @@
 #endif
 #define NULL ((POINTER) 0)
 
-#ifdef emacs
 extern POINTER start_of_data ();
-#define EXCEEDS_ELISP_PTR(ptr) ((unsigned int) (ptr) >> VALBITS)
+#define EXCEEDS_LISP_PTR(ptr) ((unsigned int) (ptr) >> VALBITS)
 
 #ifdef BSD
 #ifndef DATA_SEG_BITS
@@ -66,7 +66,9 @@
 /* Number of bytes of writable memory we can expect to be able to get */
 static unsigned int lim_data;
 
-
+#ifndef emacs
+#define start_of_data (void *) &_end
+#endif
 
 #ifdef USG