diff options
| author | Richard M. Stallman | 1992-10-11 20:40:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-10-11 20:40:05 +0000 |
| commit | 6fb48933f705a221df01d5fbcc700c18b20210d6 (patch) | |
| tree | 5e523290f91bf0d100e3274e53b050928b316583 /src | |
| parent | 3b672b8f44677a332e6796369f3f0c54c1d4733f (diff) | |
| download | emacs-6fb48933f705a221df01d5fbcc700c18b20210d6.tar.gz emacs-6fb48933f705a221df01d5fbcc700c18b20210d6.zip | |
[!emacs]: Don't define POINTER, SIZE or NULL.
(start_of_data): Define as macro, if !emacs.
(EXCEEDS_LISP_PTR): Renamed from EXCEEDS_ELISP_PTR.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mem-limits.h | 8 |
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 | ||
| 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 |
| @@ -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 */ |
| 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 | ||