comparison src/mem-limits.h @ 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 64e152d639af
children dbb56cda0b28
comparison
equal deleted inserted replaced
1392:ad64a94cd81c 1393:d2ae5897e43c
24 #else /* if BSD4_2 */ 24 #else /* if BSD4_2 */
25 #include <sys/time.h> 25 #include <sys/time.h>
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. */
32 #ifdef __STDC__ 33 #ifdef __STDC__
33 typedef void *POINTER; 34 typedef void *POINTER;
40 #ifdef NULL 41 #ifdef NULL
41 #undef NULL 42 #undef NULL
42 #endif 43 #endif
43 #define NULL ((POINTER) 0) 44 #define NULL ((POINTER) 0)
44 45
45 #ifdef emacs
46 extern POINTER start_of_data (); 46 extern 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
51 extern char etext; 51 extern char etext;
52 #define start_of_data() &etext 52 #define start_of_data() &etext
64 static POINTER data_space_start; 64 static POINTER data_space_start;
65 65
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 */
67 static unsigned int lim_data; 67 static 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
73 get_lim_data () 75 get_lim_data ()
74 { 76 {