aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mem-limits.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h
index 172f5dd1df1..e249e92e540 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -26,6 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
26#include <sys/resource.h> 26#include <sys/resource.h>
27#endif /* BSD4_2 */ 27#endif /* BSD4_2 */
28 28
29#ifdef emacs
29/* The important properties of this type are that 1) it's a pointer, and 30/* The important properties of this type are that 1) it's a pointer, and
30 2) arithmetic on it should work as if the size of the object pointed 31 2) arithmetic on it should work as if the size of the object pointed
31 to has a size of 1. */ 32 to has a size of 1. */
@@ -42,9 +43,8 @@ typedef unsigned long SIZE;
42#endif 43#endif
43#define NULL ((POINTER) 0) 44#define NULL ((POINTER) 0)
44 45
45#ifdef emacs
46extern POINTER start_of_data (); 46extern POINTER start_of_data ();
47#define EXCEEDS_ELISP_PTR(ptr) ((unsigned int) (ptr) >> VALBITS) 47#define EXCEEDS_LISP_PTR(ptr) ((unsigned int) (ptr) >> VALBITS)
48 48
49#ifdef BSD 49#ifdef BSD
50#ifndef DATA_SEG_BITS 50#ifndef DATA_SEG_BITS
@@ -66,7 +66,9 @@ static POINTER data_space_start;
66/* Number of bytes of writable memory we can expect to be able to get */ 66/* Number of bytes of writable memory we can expect to be able to get */
67static unsigned int lim_data; 67static unsigned int lim_data;
68 68
69 69#ifndef emacs
70#define start_of_data (void *) &_end
71#endif
70 72
71#ifdef USG 73#ifdef USG
72 74