# HG changeset patch # User Richard M. Stallman # Date 718836005 0 # Node ID d2ae5897e43c74a1d91cefdd68d24a751bc084fe # Parent ad64a94cd81c15963dc8c31953edf987c78af3f4 [!emacs]: Don't define POINTER, SIZE or NULL. (start_of_data): Define as macro, if !emacs. (EXCEEDS_LISP_PTR): Renamed from EXCEEDS_ELISP_PTR. diff -r ad64a94cd81c -r d2ae5897e43c src/mem-limits.h --- 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 #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