diff options
| author | Ken Raeburn | 2002-07-24 02:07:21 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-24 02:07:21 +0000 |
| commit | f456a2bcff2c242f113e1b243ec188d19c5155b1 (patch) | |
| tree | 4f0869ad00f67117a0e48cbdbcd9565481ce1983 /src | |
| parent | d5e406c3edb4e1ae50b6665e6451043281173e28 (diff) | |
| download | emacs-f456a2bcff2c242f113e1b243ec188d19c5155b1.tar.gz emacs-f456a2bcff2c242f113e1b243ec188d19c5155b1.zip | |
(start_of_data): If DATA_START is defined, prefer
its value over other approaches.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mem-limits.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h index 1028d7ff5ad..4a8771cf42e 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h | |||
| @@ -79,12 +79,18 @@ extern POINTER start_of_data (); | |||
| 79 | #define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS) | 79 | #define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS) |
| 80 | #endif | 80 | #endif |
| 81 | 81 | ||
| 82 | #ifdef DATA_START | ||
| 83 | #define start_of_data() ((char *)DATA_START) | ||
| 84 | #endif | ||
| 85 | |||
| 82 | #ifdef BSD_SYSTEM | 86 | #ifdef BSD_SYSTEM |
| 83 | #ifndef DATA_SEG_BITS | 87 | #ifndef DATA_SEG_BITS |
| 88 | #ifndef DATA_START | ||
| 84 | extern char etext; | 89 | extern char etext; |
| 85 | #define start_of_data() &etext | 90 | #define start_of_data() &etext |
| 86 | #endif | 91 | #endif |
| 87 | #endif | 92 | #endif |
| 93 | #endif | ||
| 88 | 94 | ||
| 89 | #else /* not emacs */ | 95 | #else /* not emacs */ |
| 90 | extern char etext; | 96 | extern char etext; |